41 lines
891 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Stone : Interacter
{
public StoneAxe axe;
public float interactTime = 1f;
protected override void Start()
{
base.Start();
}
void Update()
{
}
public override void OnCall()
{
base.OnCall();
switch (interactState) {
case 0:
ChangesDuringIntertacting(interactTime);
if (player.weapon.name == "石刀")
{
Debug.Log("玩家制作石斧头动画");
ItemController.Instance.ReplaceItem(axe);
}
else {
Debug.Log("拿错物品");
interactState = 0;
}
break;
default:
break;
}
}
}