예제 #1
0
        private void NourishFungus_SpawnCountDown(object sender,
                                                  ActorInfoEventArgs e)
        {
            count--;

            if (HasFungus(e.Position))
            {
                count--;
            }
        }
예제 #2
0
        public void CountDown(ActorInfoEventArgs e)
        {
            int potion = GetComponent <ActorData>().GetIntData(e.ActorTag,
                                                               DataTag.Potion);

            if (potion == 0)
            {
                return;
            }
            OnSpawnCountDown(e);
        }
예제 #3
0
 protected virtual void OnSpawnCountDown(ActorInfoEventArgs e)
 {
     SpawnCountDown?.Invoke(this, e);
 }