VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.Core.AVR_PlayerRig.Start ( )
inlineprotectedvirtual

Reimplemented from AVR.Core.AVR_Component.

Definition at line 217 of file AVR_PlayerRig.cs.

217  {
218  base.Start();
219 
220  _characterController = GetComponent<CharacterController>();
222  {
223  AVR_DevConsole.print(gameObject.name + " got CharacterController.");
224  }
225 
226  if(!MainCamera) MainCamera = Camera.main;
227  if(!MainCamera) AVR_DevConsole.cerror("The MainCamera property is not set and there is no Camera.main component in the scene!", this);
228  }
CharacterController _characterController
Camera MainCamera
Camera that represents the HMD
CharacterController characterController
CharacterController represeting the player. Null if no charactercontroller is present.