private void Awake() { if (!PAUSE_HANDLER) { PAUSE_HANDLER = GameObject.FindGameObjectWithTag("UI").GetComponent <PauseHandler>(); } }
void Awake() { m_Bounds = GameObject.FindGameObjectWithTag("Bounds").GetComponent <ScreenBounds>(); m_GameManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>(); m_BombUI = GameObject.FindGameObjectWithTag("BombUI").GetComponentInChildren <PlayerItemUI>(); m_GameState = GameObject.FindGameObjectWithTag("UI").GetComponent <PauseHandler>(); m_Health = FindObjectOfType <PlayerHealth>(); }
void Awake() { m_Renderer = GetComponent <SpriteRenderer>(); if (m_Renderer == null) { m_Renderer = GetComponentInChildren <SpriteRenderer>(); } if (!PAUSE_HANDLER) { PAUSE_HANDLER = GameObject.FindGameObjectWithTag("UI").GetComponent <PauseHandler>(); } }