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); }
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); }
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); }