Unit.Animating C# (CSharp) 메소드

Animating() 보호된 메소드

protected Animating ( ) : void
리턴 void
    protected override void Animating()
    {
        base.Animating ();
        anim.SetBool ("IsWalking", moving);
        if(currentlySelected && moving && walkingSound && !audio.isPlaying)
        {
            audio.PlayOneShot (walkingSound);
        }
        anim.SetBool ("IsRunning", running);
        if(currentlySelected && running && runningSound && !audio.isPlaying)
        {
            audio.PlayOneShot (runningSound);
        }
    }