1
This commit is contained in:
@@ -492,6 +492,25 @@ public class TurretData : MonoBehaviour
|
||||
&& sit.monCotl_Lock_Position.gameObject.activeInHierarchy;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 战神激光 loop 动画开始通知(ZhanShenLaserLoopSMB 状态机行为 / 剪辑动画事件殊途同归):
|
||||
/// 通知座位立即显示激光及全部特效(提前结束 laserFXDelay 等待)。
|
||||
/// </summary>
|
||||
public void NotifyZhanShenLaserLoopAnim()
|
||||
{
|
||||
setPosData?.NotifyZhanShenLaserLoopAnim();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AnimationEvent 接收器:在激光 loop 动画剪辑的第 0 帧配动画事件、函数名填 ZhanShenLaserLoopBegin。
|
||||
/// ⭐ 前提:Animator 挂在和本组件同一个物体上(动画事件只发给 Animator 所在物体的脚本);
|
||||
/// Animator 在子物体上时改用 ZhanShenLaserLoopSMB(Add Behaviour 到 Animator 的 loop 状态)。
|
||||
/// </summary>
|
||||
public void ZhanShenLaserLoopBegin()
|
||||
{
|
||||
NotifyZhanShenLaserLoopAnim();
|
||||
}
|
||||
|
||||
/// <summary>按参数实际类型写数值(Int/Bool/Float 通吃)</summary>
|
||||
private void SetNumericParam(string paramName, AnimatorControllerParameterType type, int value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user