protected override void Update()
        {
            LocomotionTracker component = GetTarget().GetComponent <LocomotionTracker>();

            if (component != null)
            {
                if (RunDelay > 0f)
                {
                    component.DisallowController <RunController>(RunDelay);
                }
                if (SwimDelay > 0f)
                {
                    component.DisallowController <SwimController>(SwimDelay);
                }
                if (SlideDelay > 0f)
                {
                    component.DisallowController <SlideController>(SlideDelay);
                }
                if (SitDelay > 0f)
                {
                    component.DisallowController <SitController>(SitDelay);
                }
            }
            Completed();
        }
예제 #2
0
    private void disableOtherLocomotionControllers()
    {
        LocomotionTracker component = Target.Value.gameObject.GetComponent <LocomotionTracker>();

        if (component != null)
        {
            component.DisallowController <SlideController>(2f);
        }
    }