37 lines
737 B
C#
37 lines
737 B
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ÂÝË¿µ¶
|
|
/// </summary>
|
|
public class Tool_Screwdriver : Tool_Base
|
|
{
|
|
/// <summary>
|
|
/// ¿ªÊ¼°²×°ÂÝË¿
|
|
/// </summary>
|
|
/// <param name="screw"></param>
|
|
public void Install(Tool_Screw screw)
|
|
{
|
|
if (!screw.isInstall)
|
|
{
|
|
Debug.Log("¿ªÊ¼Å¡½ôÂÝË¿");
|
|
screw.BeInstalled(this);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// ¿ªÊ¼Ð¶ÔØÂÝË¿
|
|
/// </summary>
|
|
/// <param name="screw"></param>
|
|
public void UnInstall(Tool_Screw screw)
|
|
{
|
|
if (screw.isInstall)
|
|
{
|
|
Debug.Log("¿ªÊ¼Ð¶ÂÝË¿");
|
|
screw.BeUnInstalled(this);
|
|
}
|
|
}
|
|
}
|