Class ccs.ComController

Class Summary
Constructor Attributes Constructor Name and Description
 
The controller component for Cocostudio.

Method Summary

Class Detail

ccs.ComController()
The controller component for Cocostudio.

Method Detail

  • <static> {ccs.ComController} ccs.ComController.create()
    Allocates and initializes a ComController.
    // example
    var com = ccs.ComController.create();
    Deprecated:
    since v3.0, please use new construction instead.
    Returns:
    {ccs.ComController}
  • ctor()
    Construction of ccs.ComController.
  • {Boolean} isEnabled()
    Returns controller component whether is enabled
    Returns:
    {Boolean}
  • onEnter()
    The callback calls when controller component enter stage.
  • setEnabled(bool)
    Sets controller component whether is enabled
    Parameters:
    {Boolean} bool