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