Class ccs.ComController
- Defined in: CCComController.js
- Extends ccs.Component
Constructor Attributes | Constructor Name and Description |
---|---|
The controller component for Cocostudio.
|
Method Summary
Class Detail
ccs.ComController()
The controller component for Cocostudio.
Method Detail
-
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