Item shop functioning
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
@@ -28,6 +27,11 @@ public class WorldItemSelector : MonoBehaviour
|
||||
if(Selector.insideHall){
|
||||
HumanInteractor interactor = hit.collider.GetComponent<HumanInteractor>();
|
||||
Selector.selectHuman(interactor);
|
||||
|
||||
WorldspaceButton button = hit.collider.GetComponent<WorldspaceButton>();
|
||||
if(button!=null){
|
||||
button.Click();
|
||||
}
|
||||
}
|
||||
}else{
|
||||
Selector.selectBuilding(null);
|
||||
|
||||
Reference in New Issue
Block a user