예제 #1
0
    public override void CopyInfo(SerializedClass info)
    {
        ChangeSpriteAnimationInfo i = (ChangeSpriteAnimationInfo)info;

        charToAnim = GameObject.Find(i.SpriteName).GetComponent <CharacterAnimator> ();
        newState   = i.NewState;
    }
예제 #2
0
 public MoveCharacterInfo(string charName, Vector3 destination, MoveCharacter.MoveSpeed moveSpeed, float customSpeed, bool useDefaultAnimation, CharacterAnimator.CharacterState anim)
 {
     this.charName            = charName;
     this.destination         = destination;
     this.moveSpeed           = moveSpeed;
     this.customSpeed         = customSpeed;
     this.useDefaultAnimation = useDefaultAnimation;
     this.anim = anim;
 }
 public ChangeSpriteAnimationInfo(string spriteName, CharacterAnimator.CharacterState newState)
 {
     this.spriteName = spriteName;
     this.newState   = newState;
 }