Exemple #1
0
 // start the cut animation
 void Cut(Vector2 start, Vector2 end)
 {
     letGoToTown = true;
     dio.clip    = swish;
     dio.Play();
     state       = State.CUT;
     rb.velocity = Vector2.zero;
     cutTarget   = end;
     currentCut  = Instantiate(cut).GetComponent <CutAnimation>();
     currentCut.Initialize(start, end);
 }
Exemple #2
0
        public override void ShowAnimation(BattlePokemon user, BattlePokemon target)
        {
            var animation = new CutAnimation(user, target);

            Battle.ActiveBattle.AnimationController.ShowAnimationAndWait(animation);
        }