// 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); }
public static Finish getInstance(Controllor _c) { if (_instance == null) { _controllor = _c; _instance = new Finish(); } return(_instance); }
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; }
protected new void Start() { sceneController = (Controllor)SSDirector.GetInstance().CurrentScenceController; sceneController.actionManager = this; }
void Start() { scene_controller = SSDirector.GetInstance().CurrentSceneControllor as Controllor; recorder = Singleton <ScoreRecorder> .Instance; }
protected void Start() { scene = (Controllor)SSDirector.GetInstance().CurrentSceneControllor; scene.fam = this; }