コード例 #1
0
        internal void SpawnOnDeath()
        {
            AlienBase alien = Instantiate(m_alienOnDeath, transform.position, transform.rotation) as AlienBase;

            alien.DisablePersistency();
            alien.m_entity.maxHealth *= 2;
            alien.m_entity.health    *= 2;
            alien.LockTarget(m_target);
            m_boss.m_minions.Add(alien);

            AmmoBox drop = Instantiate(m_dropAmmo, transform.position, transform.rotation) as AmmoBox;

            drop.DisablePersistency();
            drop.useRandomAmount  = true;
            drop.minRangeToRandom = m_minimumDropAmmo;
            drop.maxRangeToRandom = m_maximumDropAmmo;
        }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     box = gameObject.GetComponent<AmmoBox>();
 }