Exemplo n.º 1
0
            public override void OnStateEnter(CatController controller)
            {
                controller.animator.SetBool(Kicked, true);
                controller.StopAllCoroutines();


                var particles = controller.kickedTrail.GetComponent <ParticleSystem>();
                var main      = particles.main;
                var colour    = main.startColor;

                colour.color    = controller._kickTrailStartColour;
                main.startColor = colour;

                controller.kickedTrail.SetActive(true);
                controller.StartCoroutine(DisableKicked(controller));
            }
Exemplo n.º 2
0
 public override void OnStateExit(CatController controller)
 {
     controller.animator.SetBool(Kicked, false);
     controller.StopAllCoroutines();
     controller.StartCoroutine(FadeOutTrail(controller));
 }