73 lines
1.8 KiB
C#
73 lines
1.8 KiB
C#
//using System.Collections.Generic;
|
|
//using UnityEngine;
|
|
//namespace G
|
|
//{
|
|
|
|
// public class Stat_XuLiHitAction : Stat_BaseAction
|
|
// {
|
|
// private float f_risefactor;
|
|
|
|
// private bool m_isFinished;
|
|
|
|
// public Stat_XuLiHitAction(Stat_StateManager statMgr)
|
|
// : base(statMgr)
|
|
// {
|
|
// }
|
|
|
|
// public override bool Enter(Dictionary<string, object> param, bool clearDelegates = false)
|
|
// {
|
|
// base.Enter(param, clearDelegates);
|
|
// m_isFinished = false;
|
|
// if (param.ContainsKey("down_higher"))
|
|
// {
|
|
// m_curAniLength = m_char.PlayAnimation("behitdown");
|
|
// m_char.transform.Rotate(0f, Random.Range(0, 360), 0f);
|
|
// f_risefactor = 3f;
|
|
// }
|
|
// else
|
|
// {
|
|
// if (!param.ContainsKey("higher_hit"))
|
|
// {
|
|
// return false;
|
|
// }
|
|
// m_curAniLength = m_char.PlayAnimationByName("behitdown");
|
|
// f_risefactor = 0.6f;
|
|
// }
|
|
// return true;
|
|
// }
|
|
|
|
// public override bool UpdateDelegate()
|
|
// {
|
|
// m_char.transform.position += Vector3.up * f_risefactor * Time.deltaTime;
|
|
// f_risefactor -= Time.deltaTime * 5f;
|
|
// Vector3 position = m_char.transform.position;
|
|
// if (position.y < 0f)
|
|
// {
|
|
// Transform transform = m_char.transform;
|
|
// Vector3 position2 = m_char.transform.position;
|
|
// float x = position2.x;
|
|
// Vector3 position3 = m_char.transform.position;
|
|
// transform.position = new Vector3(x, 0f, position3.z);
|
|
// m_isFinished = true;
|
|
// f_risefactor = 0f;
|
|
// SetCurActionState(enStat.STAT_ACTION_IDLE);
|
|
// }
|
|
// return true;
|
|
// }
|
|
|
|
// public override bool CanTransition(enStat stat)
|
|
// {
|
|
// bool result = false;
|
|
// if (stat == enStat.STAT_ACTION_DEAD || stat == enStat.STAT_ACTION_XULI_HIT)
|
|
// {
|
|
// result = true;
|
|
// }
|
|
// if (m_isFinished)
|
|
// {
|
|
// result = true;
|
|
// }
|
|
// return result;
|
|
// }
|
|
// }
|
|
//}
|