private void Start() { _deltaManager = GameObject.Find("DeltaLevelManager").GetComponent <DeltaLevelManager>(); _meshRenderer = GetComponent <MeshRenderer>(); HasPhotonHit = false; // Get the original emission colour OriginalColour = _meshRenderer.material.GetColor("_EmissionColor"); }
private void Setup() { _deltaManager = GetComponent <DeltaLevelManager>(); }
private void Start() { _deltaManager = GameObject.Find("DeltaLevelManager").GetComponent <DeltaLevelManager>(); // Set new max photons after 0.1 seconds StartCoroutine(SetNewMaxPhotons()); }
// Start is called before the first frame update void Start() { _rb = GetComponent <Rigidbody>(); _deltaManager = GameObject.Find("DeltaLevelManager").GetComponent <DeltaLevelManager>(); }
private void Setup() { _deltaManager = GetComponent <DeltaLevelManager>(); _ovrRemote = GameObject.FindGameObjectWithTag("OculusRemote").transform; }