Exemple #1
0
    // For Cheese pulsating effect
    //public int healthCheck;
    //public CheesePulse playerCheese;

    void Start()
    {
        if (m_roundText)
        {
            m_roundText.gameObject.SetActive(false);
        }
        m_playerTowersList = m_owner.GetComponent <PlayerTowersList>();
        gameOverManager    = FindObjectOfType <GameOver>();
        //healthCheck = m_owner.Health;         //to check whether the health of the player has changed
    }
    public bool m_infGold = false;          // If we have infinite gold
#endif

    void Awake()
    {
        if (!m_camera)
        {
            m_camera = GetComponentInChildren <Camera>();
        }

        if (!m_towersList)
        {
            m_towersList = GetComponent <PlayerTowersList>();
        }

        if (!m_monsterList)
        {
            m_monsterList = GetComponent <PlayerMonstersList>();
        }
    }