Example #1
0
	// Use this for initialization
	void Start () {
		ui = bar.GetComponent<UI>();
        myStage = RitualStage.start;
        startDelay = 5f;
        endDelay = 10f;
        gameObject.AddComponent<StageGoal>();
        myStageGoal = GetComponent<StageGoal>();
        myStageGoal.manager = this;
        NextStage();
    }
Example #2
0
 private void Start()
 {
     players = GetComponents <Player>().ToList();
     if (board == null)
     {
         board = FindObjectOfType <Board>();
     }
     if (stageGoal == null)
     {
         stageGoal = FindObjectOfType <StageGoal>();
     }
     hasStarted = true;
     Instance   = this;
     Run();
 }
Example #3
0
 public void SetStageGoal(StageGoal param) {
   currentGoal = param;
 }