void Start() { GameObject temp = new GameObject(); temp.name = "CameraHolderRotation_CalculationsTransform"; calculationsTransform = temp.transform; calculationsTransform.LookAt(targetLookAtTransform, targetLookAtTransform.up); transform.rotation = calculationsTransform.rotation; creaturePVA = GameObject.FindGameObjectWithTag("MeshCreature").GetComponent<PVA>(); }
void Start() { GameObject temp = new GameObject(); temp.name = "CameraHolderRotation_CalculationsTransform"; calculationsTransform = temp.transform; calculationsTransform.LookAt(targetLookAtTransform, targetLookAtTransform.up); transform.rotation = calculationsTransform.rotation; creaturePVA = GameObject.FindGameObjectWithTag("MeshCreature").GetComponent <PVA>(); }
void Start() { pva = GetComponent<PVA>(); lmcController = new Controller(); if (lmcController == null) { Debug.LogWarning("Cannot connect to controller. Make sure you have Leap Motion v2.0+ installed"); } controlsInputHold = GameObject.FindGameObjectWithTag("ControlsInputHold").GetComponent<ControlsInputHold>(); }
void Start() { pva = GetComponent <PVA>(); lmcController = new Controller(); if (lmcController == null) { Debug.LogWarning("Cannot connect to controller. Make sure you have Leap Motion v2.0+ installed"); } controlsInputHold = GameObject.FindGameObjectWithTag("ControlsInputHold").GetComponent <ControlsInputHold>(); }
void Start() { creaturePVA = transform.parent.GetComponent<PVA>(); }
public bool isOverwritten = false; // used to enable LMC hand depth to take over camera target pos setting void Start() { creaturePVA = transform.parent.GetComponent <PVA>(); }
// Use this for initialization void Start() { pva = GetComponent <PVA>(); }
// Use this for initialization void Start() { pva = GetComponent<PVA>(); }