Exemple #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);
    }
Exemple #2
0
 public static Finish getInstance(Controllor _c)
 {
     if (_instance == null)
     {
         _controllor = _c;
         _instance   = new Finish();
     }
     return(_instance);
 }
Exemple #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;
     }
 }
 public void setObj()
 {
     controllor = (FirstControllor)Director.getInstance().currentSceneController;
 }
Exemple #5
0
 protected new void Start()
 {
     sceneController = (Controllor)SSDirector.GetInstance().CurrentScenceController;
     sceneController.actionManager = this;
 }
Exemple #6
0
 void Start()
 {
     scene_controller = SSDirector.GetInstance().CurrentSceneControllor as Controllor;
     recorder         = Singleton <ScoreRecorder> .Instance;
 }
Exemple #7
0
 protected void Start()
 {
     scene     = (Controllor)SSDirector.GetInstance().CurrentSceneControllor;
     scene.fam = this;
 }