Пример #1
0
 void Awake()
 {
     // Set Rigidbody
     rb = this.GetComponent <Rigidbody>();
     // Init Input Manager
     IM = Managers.s_InputManager.Instance;
 }
Пример #2
0
 void Start()
 {
     // Input Manager instace
     IM = s_InputManager.Instance;
     // Init starting variables
     currentFrame = 0;
     totalFrames  = 0;
     keyframeTime = 0.0f;
     isNormal     = true;
     // Set previous play direction
     previousPlaybackDirection = PB_Direction.FORWARD;
     // Init Objects to record
     GetObjectsToRecord();
 }