void Start() { _roomTimer = GameObject.Find("RoomController").GetComponent <RoomTimer>(); if (GameState != "") { GameStates.Register(GameState, InitialState); } else { Debug.Log("No GameState associated with item " + this.gameObject.name); } }
// Use this for initialization void Start() { _roomTimer = GameObject.Find("RoomController").GetComponent <RoomTimer>(); }