I get all VendingMachines in game.
VendingMachine[] allVM = UnityEngine.Object.FindObjectsOfType<VendingMachine>();
But I need get it is NPS or User..
How can I get it NPS or User Mahine ?
foreach (VendingMachine vm in allVM)
{
bool IsNPS = GetIsNPC(vm);
}
I need GetIsNPC method...
private bool GetIsNPC(VendingMachine vm)
{
.......
}
Thanks in advance to the help.
VendingMachine[] allVM = UnityEngine.Object.FindObjectsOfType<VendingMachine>();
But I need get it is NPS or User..
How can I get it NPS or User Mahine ?
foreach (VendingMachine vm in allVM)
{
bool IsNPS = GetIsNPC(vm);
}
I need GetIsNPC method...
private bool GetIsNPC(VendingMachine vm)
{
.......
}
Thanks in advance to the help.