// 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(); }
private void Start() { players = GetComponents <Player>().ToList(); if (board == null) { board = FindObjectOfType <Board>(); } if (stageGoal == null) { stageGoal = FindObjectOfType <StageGoal>(); } hasStarted = true; Instance = this; Run(); }
public void SetStageGoal(StageGoal param) { currentGoal = param; }