コード例 #1
0
 void Start()
 {
     action = SSDirector.GetInstance().CurrentSceneController as IUserAction;
     style1 = new GUIStyle()
     {
         fontSize = 30
     };
     style1.normal.textColor = Color.white;
     style2 = new GUIStyle("button")
     {
         fontSize = 15
     };
 }
コード例 #2
0
        public void MoveBoat()
        {
            CCMove ccMove;

            if (!left)
            {
                ccMove = CCMove.GetSSAction(new Vector3(-0.21f, 0.57f, 3.65f));
            }
            else
            {
                ccMove = CCMove.GetSSAction(new Vector3(2.79f, 0.57f, 3.65f));
            }
            var actionManager = ((FirstController)SSDirector.GetInstance().CurrentSceneController).actionManager;

            actionManager.RunAction(obj, ccMove, (CCActionManager)actionManager);
            for (int i = 0; i < characters.Length; i++)
            {
                if ((characters[i] != null))
                {
                    characters[i].ChangeSide();
                }
            }
            left = !left;
        }
コード例 #3
0
 void Start()
 {
     action = SSDirector.GetInstance().CurrentSceneController as IUserAction;
 }
コード例 #4
0
        /*public void moveBoat(GameObject boat, int to_or_from)
         * {
         *  if (to_or_from == -1)
         *  {
         *      CCBoatMove boatMoveToRight = CCBoatMove.GetSSAction(new Vector3(5, 1, 0));
         *      this.RunAction(boat, boatMoveToRight, this);
         *  }
         *  else
         *  {
         *      CCBoatMove boatMoveToLeft = CCBoatMove.GetSSAction(new Vector3(-5, 1, 0));
         *      this.RunAction(boat, boatMoveToLeft, this);
         *  }
         * }
         *
         * public void moveCharacter(GameObject obj, Vector3 dest)
         * {
         *  CCCharacterMove characterMove = CCCharacterMove.GetSSAction(dest);
         *  this.RunAction(obj, characterMove, this);
         * }*/

        public new void Start()
        {
            sceneController = (FirstController)SSDirector.GetInstance().CurrentSceneController;
            sceneController.actionManager = this;
        }