Exemple #1
0
 public void Die()
 {
     gm.EnemyDie(index);
     if (Random.value < potionSpawnChance)
     {
         Instantiate(potion, transform.position, transform.rotation * Quaternion.Euler(0, 0, Random.Range(0, 360)));
     }
 }