31 lines
558 B
C#
31 lines
558 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream.FixSystem
|
|
{
|
|
public interface ISocket
|
|
{
|
|
public bool IsAvailable { get; }
|
|
|
|
public void PlugIn();
|
|
public void PlugOut();
|
|
}
|
|
|
|
public class Socket : MonoBehaviour, ISocket
|
|
{
|
|
public bool IsAvailable { get; private set; }
|
|
|
|
public void PlugIn()
|
|
{
|
|
Debug.Log("Plug In");
|
|
}
|
|
|
|
public void PlugOut()
|
|
{
|
|
Debug.Log("Plug Out");
|
|
}
|
|
}
|
|
}
|
|
|