Beispiel #1
0
        public void ActionGetFood(FoodDesk foodDesk)
        {
            ActionDeliverFood action = actionManager.AddAction <ActionDeliverFood>();

            if (action)
            {
                action.foodDesk = foodDesk;
            }
        }
Beispiel #2
0
        public void DeliverFood(CustomerGroup group)
        {
            if (!photonView.isMine)
            {
                return;
            }

            ActionDeliverFood action = gameObject.GetComponent <ActionDeliverFood>();

            if (action)
            {
                action.DeliverTo(group);
            }
        }