AnimationBaker.FixedUpdate C# (CSharp) Метод

FixedUpdate() приватный Метод

private FixedUpdate ( ) : void
Результат void
    void FixedUpdate()
    {
        if(playAnimation){
            if(!animClip.IsEmpty())
                PlayAnimation();
            else if(!string.IsNullOrEmpty(dumpFilePath))
                LoadAnimationDump(dumpFilePath);
        }
        if(!sourceAnimator)
            return;
        if(canPlay==false){
            recordTime+=Time.fixedDeltaTime;
            canPlay = true;
        }

        if(startRecord && passedTime> recordTime && recordTime>-1f){
            Debug.Log ("passed time:"+ passedTime+"; recordTime:"+ recordTime);
            passedTime = 0f;
            recordTime = -1f;
            startRecord = false;
        }

        if(startRecord){
            if(sourceAnimator.enabled==false)
            sourceAnimator.enabled = true;
            if(delayPassedTime>=delayTime){
                if(sourceAnimator.speed<1f)
                    sourceAnimator.speed = 1f;
                passedTime+=Time.fixedDeltaTime;
                ReadAnimation ();
                isRecording = true;
            }
        }else if(isRecording){
            sourceAnimator.enabled = false;
            if(countersReseted == false)
                ResetFlags();
        }
    }