Fixes to network behavior
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -49,7 +49,7 @@ namespace Item
|
||||
|
||||
|
||||
public abstract bool Interact();
|
||||
[ServerRpc]
|
||||
|
||||
public abstract bool Interact(ref Inventory inventory, ref HeavyInteractableItem heavyInvent);
|
||||
|
||||
protected void BaseAwake()
|
||||
|
Reference in New Issue
Block a user