Exemplo n.º 1
0
    protected new void Start()
    {
        float speed = 5f;

        sceneController = (GenGameObjects)SSDirector.GetInstance().genGameObjects;
        // sceneController.actionManager = this;
    }
Exemplo n.º 2
0
 internal void setGenGameObject(GenGameObjects gen)
 {
     if (_genGameObject == null)
     {
         _genGameObject = gen;
     }
 }
Exemplo n.º 3
0
 internal void setGenGameObjects(GenGameObjects _myGenGameObjects)
 {
     if (myGenGameObjects == null)
     {
         myGenGameObjects    = _myGenGameObjects;
         BoatPriestsNum      = BoatDevilsNum = BankLeftPriestsNum = BankLeftDevilsNum = 0;
         BankRightPriestsNum = BankRightDevilsNum = 3;
     }
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     sc            = SSDirector.getInstance().currentSceneController as GenGameObjects;
     action        = SSDirector.getInstance().currentSceneController as IUserAction;
     button_width  = 100;
     button_height = 50;
     button_y      = 80;
     move_x        = 100;
     Debug.Log("UI start");
     Debug.Log(action);
 }
    protected new void Start()
    {
        object_speed    = 4.0f;
        boat_speed      = 4.0f;
        sceneController = (GenGameObjects)SSDirector.getInstance().currentSceneController;
        sceneController.actionManager = this;

        move_up            = CCMoveAction.GetSSAction(new Vector3(0, 1, 0), object_speed);
        move_down          = CCMoveAction.GetSSAction(new Vector3(0, -1, 0), object_speed);
        move_to_boat_left  = CCMoveToAction.GetSSAction(new Vector3(-2.3f, 2, 0), object_speed);
        move_to_boat_right = CCMoveToAction.GetSSAction(new Vector3(-1.2f, 2, 0), object_speed);

        get_on_boat_left = CCSequenceAction.GetSSAction(0, 0, new List <SSAction> {
            move_up, move_to_boat_left, move_down
        });
        get_on_boat_right = CCSequenceAction.GetSSAction(0, 0, new List <SSAction> {
            move_up, move_to_boat_right, move_down
        });

        boat_to_end   = CCMoveToAction.GetSSAction(new Vector3(1.7f, 0, 0), boat_speed);
        boat_to_begin = CCMoveToAction.GetSSAction(new Vector3(-1.7f, 0, 0), boat_speed);
    }