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