示例#1
0
        public void SetCreature(CreatureContext creature)
        {
            Creature = creature;

            if (Creature != null)
            {
                CreatureAnimator.runtimeAnimatorController = Creature.Creature.Species.Animations;
            }

            if (Creature != null && !IsActive)
            {
                Activate();
            }

            if (Creature == null && IsActive)
            {
                Deactivate();
            }

            UpdateCreature(null, null);
        }
示例#2
0
 public virtual MoveContext CreateMove(CreatureContext creature, Move move)
 {
     return(new MoveContext(this, creature, move));
 }
示例#3
0
 public MoveContext(BattleContext battle, CreatureContext creature, Move move) : base(move)
 {
     Creature = creature;
 }