1
This commit is contained in:
18
Unity/Scripts/Mirror/NetworkInteractivable.cs
Normal file
18
Unity/Scripts/Mirror/NetworkInteractivable.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Mirror;
|
||||
using UnityEngine.Events;
|
||||
using Sirenix.OdinInspector;
|
||||
namespace Mirror
|
||||
{
|
||||
public abstract class NetworkInteractivable : NetworkBehaviour
|
||||
{
|
||||
public virtual void Excute(NetworkIdentity identity, string action) { }
|
||||
public virtual bool CanInteractive() => true;
|
||||
public virtual string GetDescription() => "Dev";
|
||||
public virtual string GetID() => name;
|
||||
public virtual void SetHighlight() { }
|
||||
public virtual Vector3 GetPosition() => transform.position;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user