示例#1
0
 public void DieByKill()
 {
     GetComponent <Collider>().enabled = false;
     GameStats.EnemyDie(goldPerKill);
     onDie?.Invoke();
     // onDieByKill?.Invoke(gameObject);
     onDieSelf?.Invoke(gameObject);
 }