Esempio n. 1
0
        void Awake()
        {
            rb   = GetComponent <Rigidbody>();
            rise = GetComponent <RiseAnimation>();

            HackTimePickup.PickedUpStatic -= HackTimePickedupHandler;
            HackTimePickup.PickedUpStatic += HackTimePickedupHandler;
        }
Esempio n. 2
0
        void Awake()
        {
            rise    = GetComponent <RiseAnimation>();
            spawner = GetComponent <BossSpawner>();

            allSubBossCount += 1;
            number           = allSubBossCount;

            // add to empty slot in array
            for (int i = 0; i < MAX_SUB_BOSSES; i++)
            {
                if (allSubBosses_[i] == null)
                {
                    allSubBosses_[i] = this;
                    break;
                }
            }
        }