Пример #1
0
        void upgrade(int index)
        {
            //		ScoreFlash.Push(upgrades[index].gameObject.name);
            FloatingTextManager.pushFloatingText("Leveled Up: " + upgrades[index].gameObject.name, Color.red);
            GameObject go = (GameObject)Instantiate(upgrades[index].gameObject, Vector3.zero, Quaternion.identity);

            if (go)
            {
                go.transform.parent = transform;
            }
        }
Пример #2
0
        public void activateSeconaryWeapon(int weaponIndex)
        {
            secondaryWeapons[m_currentIndex].hideBeam();
            secondaryWeapons[m_currentIndex].gameObject.SetActive(true);

            m_currentWeapon = secondaryWeapons[weaponIndex];
            m_currentWeapon.refill();
            FloatingTextManager.pushFloatingText("Picked Up: " + m_currentWeapon.name, Color.green);


            m_currentIndex = weaponIndex;
        }