Пример #1
0
 void Start()
 {
     addAction    = SceneController.getInstance() as IAddAction;
     gameStatusOp = SceneController.getInstance() as IGameStatusOp;
     ownIndex     = getOwnIndex();
     isCatching   = false;
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        addAction    = (FirstControl)Director.getInstance().sceneCtrl as IAddAction;
        gameStatusOp = (FirstControl)Director.getInstance().sceneCtrl as IGameStatusOp;

        whichPatrol = getIndex();
        isCatching  = false;
    }
Пример #3
0
    void Start()
    {
        addAction    = SceneController.getInstance() as IAddAction;
        gameStatusOp = SceneController.getInstance() as IGameStatusOp;

        ownIndex   = getOwnIndex();
        isCatching = false;
        if (ownIndex != 1)
        {
            addAction.addRandomMovement(this.gameObject, false);
        }
    }