Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     height           = new Vector3(0, gameObject.transform.lossyScale.y / 2, 0);
     _renderer        = gameObject.GetComponent <Renderer>();
     _collider        = gameObject.GetComponent <Collider>();
     _interaction     = bookShelf.GetComponent <BookShelfInteraction>();
     _lookedAt        = bookShelf.GetComponent <BookShelfIsLookedAt>();
     _winStateManager = bookShelf.GetComponent <WinStateManager>();
     _winStateManager.RegisterPuzzleObject();
     _interactableObject = gameObject.GetComponent <InteractableObject>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     UIController     = UICanvas.GetComponent <UI_Controller>();
     _winStateManager = gameObject.GetComponent <WinStateManager>();
     _winStateManager.RegisterPuzzleObject();
 }