示例#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);
 }