Ejemplo n.º 1
0
            static void BoardHasBecomeActive(bool logMinis = false)
            {
                if (logMinis)
                {
                    Log.Warning($"BoardHasBecomeActive - minis we see now:");
                }

                CreatureBoardAsset[] allMinis = Minis.GetAll();
                foreach (CreatureBoardAsset creatureBoardAsset in allMinis)
                {
                    Creature creature = creatureBoardAsset.GetComponent <Creature>();
                    if (logMinis)
                    {
                        if (creature != null)
                        {
                            Log.Debug($"  {creature.Name} ({creatureBoardAsset.Creature.CreatureId.Value})");
                        }
                        else
                        {
                            Log.Warning($"  <Creature> component missing! ({creatureBoardAsset.Creature.CreatureId.Value})");
                        }
                    }
                }
                if (logMinis)
                {
                    Log.Debug($"-----------------------");
                    Log.Debug($"");
                }
                boardActivationTime = Time.time;
            }
Ejemplo n.º 2
0
 static void CheckForNewMinis()
 {
     CreatureBoardAsset[] allMinis = Minis.GetAll();
     if (lastMiniCount == allMinis.Length)
     {
         return;
     }
     lastMiniCount = allMinis.Length;
     foreach (CreatureBoardAsset creatureBoardAsset in allMinis)
     {
         if (IsMiniAnUninitializedEffect(creatureBoardAsset))
         {
             InitializeMiniAsEffect(creatureBoardAsset);
         }
     }
 }