public void SendDropItemOrder(CollectableObject collectableObject, Vector3 position, bool directOrder, bool postpone) { if (!postpone) { if (directOrder) { Orders.Clear(); } SendMessage("StopAction"); CollectableObjectScript.DropObject(collectableObject, position); } }
public void GoTakeObject(CollectableObject collectableObject) { int i = 0; while (i < Inventory.Length && Inventory[i] != null) { i++; } if (i < Inventory.Length) { CollectableObjectScript.TakeObject(collectableObject); } else { print("Inventory full"); } }
private void Awake() { instance = this; }