void Start() { addAction = SceneController.getInstance() as IAddAction; gameStatusOp = SceneController.getInstance() as IGameStatusOp; ownIndex = getOwnIndex(); isCatching = false; }
// Use this for initialization void Start() { addAction = (FirstControl)Director.getInstance().sceneCtrl as IAddAction; gameStatusOp = (FirstControl)Director.getInstance().sceneCtrl as IGameStatusOp; whichPatrol = getIndex(); isCatching = false; }
void Start() { addAction = SceneController.getInstance() as IAddAction; gameStatusOp = SceneController.getInstance() as IGameStatusOp; ownIndex = getOwnIndex(); isCatching = false; if (ownIndex != 1) { addAction.addRandomMovement(this.gameObject, false); } }