Пример #1
0
 // caching
 private void Awake()
 {
     mainCursorImage  = GetComponent <Image>();
     graphicRaycaster = GetComponentInParent <GraphicRaycaster>();
     playerInput      = FindObjectOfType <PlayerInput>();
     menuUIControl    = FindObjectOfType <MenuUIControl>();
     menuRotation     = FindObjectOfType <MenuRotation>();
 }
Пример #2
0
 private void Awake()
 {
     menuUIControl = GetComponentInParent <MenuUIControl>();
 }