public void Awake() { instance = this; _camera = Camera.main; _pR = GetComponent <PointerRotation>(); }
private void Start() { pointerRotation = GameObject.FindObjectOfType <PointerRotation>(); int i = 0; foreach (Chapter chapter in chapters) { chapter.chapterIndex = i; if (chapter.light != null) { chapter.light.color = Color.white; } i++; if (chapter.objectHolder != null && chapter.objectHolder.activeSelf) { foreach (Transform child in chapter.objectHolder.transform) { chapter.objectsInTheRoom.Add(child.gameObject); } } } }
private void Start() { pointerRotation = GameObject.FindObjectOfType <PointerRotation>(); }