Fixes to network behavior

This commit is contained in:
2023-06-15 13:06:08 -04:00
parent 2bb8baa23c
commit 130455b9b2
6 changed files with 14 additions and 3 deletions

View File

@ -1,10 +1,12 @@
using UnityEngine;
using FishNet.Connection;
using FishNet.Object;
namespace Item
{
[RequireComponent(typeof(Collider))]
[RequireComponent(typeof(Rigidbody))]
public abstract class CarryableItem : MonoBehaviour
public abstract class CarryableItem : NetworkBehaviour
{
[SerializeField] private string itemName;

View File

@ -49,7 +49,7 @@ namespace Item
public abstract bool Interact();
[ServerRpc]
public abstract bool Interact(ref Inventory inventory, ref HeavyInteractableItem heavyInvent);
protected void BaseAwake()