Beispiel #1
0
 // caching
 private void Awake()
 {
     mainCursorImage  = GetComponent <Image>();
     graphicRaycaster = GetComponentInParent <GraphicRaycaster>();
     playerInput      = FindObjectOfType <PlayerInput>();
     menuUIControl    = FindObjectOfType <MenuUIControl>();
     menuRotation     = FindObjectOfType <MenuRotation>();
 }
Beispiel #2
0
 // sets to false on awake
 private void Awake()
 {
     objectImage  = GetComponent <Image>();
     menuRotation = FindObjectOfType <MenuRotation>();
 }
 private void Awake()
 {
     playerInput  = FindObjectOfType <PlayerInput>();
     menuRotation = FindObjectOfType <MenuRotation>();
 }