Exemplo n.º 1
0
 public void OnDisable()
 {
     if (ApplicationHelper.IsPlaying)
     {
         _roster.DestroyCreatures();
     }
 }
Exemplo n.º 2
0
        protected virtual IEnumerator RunEncounter(Creature creature)
        {
            Roster.AddCreature(creature);

            if (Instructions != null && Instructions.Instruction != null)
            {
                yield return(Instructions.Execute(WorldManager.Instance.Context, this));
            }

            Roster.DestroyCreatures();
        }