void OnEnable() { game = GameObject.Find(GAME_STATE).GetComponent <IGameStateReadOnly>(); player = GameObject.Find(PLAYER).GetComponent <IPlayerStateReadOnly>(); }
void OnEnable() { game = GameObject.Find(GAME_STATE).GetComponent<IGameStateReadOnly>(); player = GameObject.Find(PLAYER).GetComponent<IPlayerStateReadOnly>(); }
void Start() { player = transform.parent.GetComponent<PlayerManager>(); state = transform.parent.GetComponent<IPlayerStateFullAccess>(); game = GameObject.Find(GAME_STATE).GetComponent<IGameStateReadOnly>(); }
void Start() { player = transform.parent.GetComponent <PlayerManager>(); state = transform.parent.GetComponent <IPlayerStateFullAccess>(); game = GameObject.Find(GAME_STATE).GetComponent <IGameStateReadOnly>(); }