예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     inventoryVisual = GameObject.FindObjectOfType <InventoryVisual>();
     main            = Camera.main;
     movement        = GetComponent <Movement>();
     raycastPlane    = new Plane(Vector3.up, 0f);
     itemManager     = GetComponent <EquippedItemManager>();
 }
예제 #2
0
 private void Awake()
 {
     if (visual == null)
     {
         visual = GetComponentInParent <InventoryVisual>();
     }
     itemImage  = GetComponentsInChildren <Image>()[1];
     amountText = GetComponentInChildren <Text>();
 }