2021-08-23 01:55:03 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class MissileHeap : Interactive
|
|
|
|
{
|
2021-09-01 01:50:06 +08:00
|
|
|
[Tooltip("请填入此堆投掷物需要的投掷力度")]
|
|
|
|
public float srengthOfThrowing;
|
2021-08-23 01:55:03 +08:00
|
|
|
public override void OnCall()
|
|
|
|
{
|
2021-09-01 01:50:06 +08:00
|
|
|
//通知玩家进入投掷状态
|
2021-08-23 01:55:03 +08:00
|
|
|
FindObjectOfType<M_Player>().EnterThrowingState();
|
2021-09-01 01:50:06 +08:00
|
|
|
FindObjectOfType<M_Player>().ChangeStrengthOfThrowingTo(srengthOfThrowing);
|
2021-08-23 01:55:03 +08:00
|
|
|
}
|
|
|
|
}
|