Exemplo n.º 1
0
 public void KillEntity()
 {
     Alive = false;
     m_SpawnPickup.CreatePickup();
     Singleton_Game.m_instance.AddScore(10000, new Vector2(Enemy.gameObject.transform.position.x, Enemy.gameObject.transform.position.y));
     Singleton_Game.m_instance.AddGameStat(Singleton_Game.EGameStat.EKills, 1);
 }
Exemplo n.º 2
0
 public void KillEntity()
 {
     Angered = true;
     Alive   = false;
     m_SpawnPickup.CreatePickup();
     Singleton_Game.m_instance.AddScore(2000, EnemyPos);
     Singleton_Game.m_instance.AddGameStat(Singleton_Game.EGameStat.EKills, 1);
 }
Exemplo n.º 3
0
 public void KillEntity()
 {
     Alive = false;
     // gives a 50% chance to drop a pickup
     if (Random.Range(0, 2) == 0)
     {
         m_SpawnPickup.CreatePickup();
     }
     Singleton_Game.m_instance.AddScore(200, new Vector2(Enemy.gameObject.transform.position.x, Enemy.gameObject.transform.position.y));
     Singleton_Game.m_instance.AddGameStat(Singleton_Game.EGameStat.EKills, 1);
 }