private void InputHold(bool holding)
 {
     MessageSystem.SendMessage(MessageType.InteractHold, new MessageDataHold
     {
         Holding = holding, Player = gameObject
     });
 }
Exemple #2
0
        private void ProcessCmd(int cmd, GameObject player, int target, int data)
        {
            switch ((DataCommand)cmd)
            {
            case DataCommand.PickItem:
                PlayerPickUpItem(player, target);
                break;

            case DataCommand.SpawnItem:
                PlayerHandSpawnItem(player, data);
                break;

            case DataCommand.DestroyItem:
                SceneDestroyItem(data);
                break;

            case DataCommand.UpdateItemStatus:
                SceneUpdateItemStatus(data);
                break;

            case DataCommand.PutOnTable:
                PlayerPutItemOnTable(player, data, target);
                break;

            case DataCommand.PutOnFloor:
                PlayerPutItemOnFloor(player, data);
                break;

            case DataCommand.StartCast:
                PlayerStartCast(player, target, data);
                break;
            }

            MessageSystem.SendMessage(MessageType.SuccessfulInteract, target);
        }
 private void InputTap()
 {
     MessageSystem.SendMessage(MessageType.InteractTap, gameObject);
 }