示例#1
0
    public void SendDropItemOrder(CollectableObject collectableObject, Vector3 position, bool directOrder, bool postpone)
    {
        if (!postpone)
        {
            if (directOrder)
            {
                Orders.Clear();
            }

            SendMessage("StopAction");
            CollectableObjectScript.DropObject(collectableObject, position);
        }
    }
示例#2
0
    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");
        }
    }
示例#3
0
 private void Awake()
 {
     instance = this;
 }