Exemplo n.º 1
0
 private void Awake()
 {
     if (!PAUSE_HANDLER)
     {
         PAUSE_HANDLER = GameObject.FindGameObjectWithTag("UI").GetComponent <PauseHandler>();
     }
 }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 3
0
        void Awake()
        {
            m_Renderer = GetComponent <SpriteRenderer>();

            if (m_Renderer == null)
            {
                m_Renderer = GetComponentInChildren <SpriteRenderer>();
            }

            if (!PAUSE_HANDLER)
            {
                PAUSE_HANDLER = GameObject.FindGameObjectWithTag("UI").GetComponent <PauseHandler>();
            }
        }