Ejemplo n.º 1
0
    public void ShotAnimation(Action _OnShotAnimationEndCallback)
    {
        if (controllerToUse == null)
        {
            shotAnimationCallback = _OnShotAnimationEndCallback;

            HeadShot();
            if (!moving)
            {
                BodyShot();
            }
        }
        else
        {
            controllerToUse.ShotAnimation(_OnShotAnimationEndCallback);
        }
    }