Example #1
0
 public void StartRecord(MotionClip motionClip)
 {
     this._motionClip = motionClip;
     recordState      = RecordState.RECORDING;
     _startTime       = Time.time;
     _timer           = 0f;
     Debug.Log("録画開始。");
 }
Example #2
0
        //_delayTime_sec秒遅れて再生させる。
        public void MotionPlay(MotionClip motionClip, float delayTimeSec = 1f)
        {
            if (_targetHead == null && _targetRight == null && _targetLeft == null)
            {
                Debug.LogWarning("モーション再生対象が設定されていません。");
                return;
            }
            _startTime    = Time.time;
            _motionClip   = motionClip;
            _delayTimeSec = delayTimeSec;

            Debug.Log("モーション再生。遅延は" + string.Format("{0:#.#}", this._delayTimeSec)   + "秒");
            playState = PlayState.PLAYING;
        }