AnimationBaker.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
    void Start()
    {
        if(!sourceSkeleton)
            sourceSkeleton = transform;
        sampleStep = (float)1/samples;
        Time.fixedDeltaTime = sampleStep;
        skeletonInfo.skeleton = sourceSkeleton;
        skeletonInfo.UpdateSkeletonInfo(false);
        animClip.bonesStates = new BoneState[skeletonInfo.bonesCount];
        //sourceAnimator = GetComponent<Animator>();
        if(sourceAnimator){
        //sourceAnimator.enabled = false;
            Debug.Log ("cur character:"+transform.name+"; animation name:"+curAnimationName+"; delayPassedTime:"+delayPassedTime+";" +
                       "; delay:"+delayTime+"; Time.time:"+Time.time+"sample rate:"+samples+"(sample step = "+sampleStep+")");
        }
        //else Debug.Log ("Can't read animation: animator not found!");
        sourceAnimation = GetComponent<Animation>();
        reflection = typeof(AnimationClip);
    }