Beispiel #1
0
    private void Start()
    {
        _thisTransform = transform;
        _currFrame     = 0;

        loopType = RecorderAlt.instance.loopType;

        _lastIndex = preRecordedData.Length;

        //for (int i = 0; i < preRecordedData.Length; i++)
        //{
        //    if (preRecordedData[i].scale == Vector3.zero)
        //    {
        //        _lastIndex = i-1;
        //        break;
        //    }

        //}

        if (GetComponent <Guard>() != null)
        {
            hasGuardComponent = true;
        }

        Debug.LogWarning("Prerecorded data length is " + preRecordedData.Length);
    }
Beispiel #2
0
    private void Start()
    {
        _thisTransform = this.gameObject.transform;
        _currFrame     = 0;

        loopType = RecorderAlt.instance.loopType;
        for (int i = 0; i < preRecordedData.Length; i++)
        {
            if (preRecordedData[i].scale == Vector3.zero)
            {
                _lastIndex = i - 1;
                break;
            }
        }
    }