示例#1
0
    // Use this for initialization
    void Start()
    {
        // "gameove"和"成功"的提示框
        backgroundStyle           = new GUIStyle("box");
        backgroundStyle.alignment = TextAnchor.LowerCenter;
        backgroundStyle.fontSize  = 100;
        // 标题
        boxStyle          = new GUIStyle("Box");
        boxStyle.fontSize = 20;
        // 初始化对象
        _passenger = new Passenger[6];
        for (int i = 0; i != 3; ++i)
        {
            _passenger[i] = new Passenger(Passenger.Type.Priest);
        }
        for (int i = 3; i != 6; ++i)
        {
            _passenger[i] = new Passenger(Passenger.Type.Devil);
        }
        _boat = new Boat();
        new Coast(View.leftCoastPos);
        new Coast(View.rightCoastPos);
        new River(View.riverPos);
        new Mountain(View.Mountain);

        _controllor = new Controllor(_passenger, _boat, this);
    }
示例#2
0
 public static Finish getInstance(Controllor _c)
 {
     if (_instance == null)
     {
         _controllor = _c;
         _instance   = new Finish();
     }
     return(_instance);
 }
示例#3
0
 public void SSActionEvent(SSAction source, GameObject arrow = null)
 {
     if (arrow != null)
     {
         ArrowTremble tremble = ArrowTremble.GetSSAction();
         this.RunAction(arrow, tremble, this);
     }
     else
     {
         Controllor scene_controller = (Controllor)SSDirector.GetInstance().CurrentSceneControllor;
     }
 }
示例#4
0
 public void setObj()
 {
     controllor = (FirstControllor)Director.getInstance().currentSceneController;
 }
示例#5
0
 protected new void Start()
 {
     sceneController = (Controllor)SSDirector.GetInstance().CurrentScenceController;
     sceneController.actionManager = this;
 }
示例#6
0
 void Start()
 {
     scene_controller = SSDirector.GetInstance().CurrentSceneControllor as Controllor;
     recorder         = Singleton <ScoreRecorder> .Instance;
 }
示例#7
0
文件: Actions.cs 项目: loudax/3d-game
 protected void Start()
 {
     scene     = (Controllor)SSDirector.GetInstance().CurrentSceneControllor;
     scene.fam = this;
 }