override public float Run() { if (!isRunning) { isRunning = true; if (linkedProp) { float _transitionTime = Mathf.Max(transitionTime, 0f); RunToTime(_transitionTime, false); if (willWait && _transitionTime > 0f) { return(defaultPauseTime); } } } else { if (linkedProp) { if (!linkedProp.IsMoving(transformType)) { isRunning = false; } else { return(defaultPauseTime); } } } return(0f); }
public override float Run() { if (!isRunning) { isRunning = true; if (runtimeLinkedProp != null) { float _transitionTime = Mathf.Max(transitionTime, 0f); RunToTime(_transitionTime, false); if (willWait && _transitionTime > 0f) { return(defaultPauseTime); } } else { if (isPlayer && KickStarter.player != null) { LogWarning("The player " + KickStarter.player + " requires a Moveable component to be moved.", KickStarter.player); } } } else { if (runtimeLinkedProp != null) { if (!runtimeLinkedProp.IsMoving(transformType)) { isRunning = false; } else { return(defaultPauseTime); } } } return(0f); }