private void NourishFungus_SpawnCountDown(object sender, ActorInfoEventArgs e) { count--; if (HasFungus(e.Position)) { count--; } }
public void CountDown(ActorInfoEventArgs e) { int potion = GetComponent <ActorData>().GetIntData(e.ActorTag, DataTag.Potion); if (potion == 0) { return; } OnSpawnCountDown(e); }
protected virtual void OnSpawnCountDown(ActorInfoEventArgs e) { SpawnCountDown?.Invoke(this, e); }