void Start() { player = GameObject.Find(PLAYER).GetComponent<IPlayerStateReadOnly>(); spriteRenderer.enabled = true; FadeInNewLevel(); GetPlayerPosition(); }
public float groundLine = -50.00f; // where above-ground ends and below-ground begins void Start() { player = GameObject.Find(PLAYER).GetComponent <IPlayerStateReadOnly>(); spriteRenderer.enabled = true; FadeInNewLevel(); GetPlayerPosition(); }
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>(); }