fix pose action
This commit is contained in:
@@ -44,7 +44,6 @@ public partial class CECGameRun
|
||||
private static Dictionary<int, CECInstance> m_InstTab = new Dictionary<int, CECInstance>();
|
||||
public void Init()
|
||||
{
|
||||
BMLogger.LogError("CECGameRun Init");
|
||||
Application.targetFrameRate = 60;
|
||||
instance = this;
|
||||
// _gameRunConfig = Resources.Load<GameRunConfig>("GameRunConfig");
|
||||
|
||||
@@ -156,10 +156,10 @@ namespace BrewMonster
|
||||
public EC_Inventory PackInventory => m_packInventory;
|
||||
public EC_Inventory EquipInventory => m_equipInventory;
|
||||
public EC_Inventory TaskInventory => m_taskInventory;
|
||||
|
||||
|
||||
private void OnApplicationQuit()
|
||||
{
|
||||
if(m_pTaskInterface!=null)
|
||||
if (m_pTaskInterface != null)
|
||||
m_pTaskInterface.Despose();
|
||||
}
|
||||
|
||||
@@ -1113,7 +1113,6 @@ namespace BrewMonster
|
||||
int iLimit = (int)(pCmd.iMaxHP * 0.3f);
|
||||
if (pCmd.iHP < m_BasicProps.iCurHP && m_BasicProps.iCurHP >= iLimit && pCmd.iHP < iLimit)
|
||||
{
|
||||
|
||||
/*if (CECUIHelper::GetGameUIMan().IsShowLowHP()) {
|
||||
// ѪÁ¿µÍÓÚÁÙ½çÖµÔò²¥·ÅÌØÐ§
|
||||
const int GfxLastTime = 10000; // ³ÖÐøÊ±¼ä10Ãë
|
||||
@@ -1760,7 +1759,6 @@ namespace BrewMonster
|
||||
|
||||
|
||||
// TODO: Handle other pickup item commands if necessary
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2590,6 +2588,11 @@ namespace BrewMonster
|
||||
return iRet;
|
||||
}
|
||||
|
||||
public void ClearAnimation()
|
||||
{
|
||||
EventBus.PublishChannel(GetCharacterID(), new ClearComActFlagAllRankNodesEvent(true));
|
||||
}
|
||||
|
||||
public CECActionSwitcherBase GetActionSwitcher()
|
||||
{
|
||||
return m_pActionSwitcher;
|
||||
@@ -3134,7 +3137,6 @@ namespace BrewMonster
|
||||
if (!bTraceOK) return false;
|
||||
// }
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3265,9 +3267,7 @@ namespace BrewMonster
|
||||
//// Clear deal pack
|
||||
//m_pDealPack.RemoveAllItems();
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3546,7 +3546,6 @@ namespace BrewMonster
|
||||
UnityGameSession.c2s_CmdCastPosSkill(m_pPrepSkill.GetSkillID(), EC_Utility.ToVector3(vMovePos),
|
||||
byPVPMask, 1, idTarget);
|
||||
bSuccess = true;
|
||||
|
||||
}
|
||||
|
||||
m_pPrepSkill = null;
|
||||
@@ -4163,11 +4162,9 @@ namespace BrewMonster
|
||||
|
||||
if (m_iMoveEnv == Move_environment.MOVEENV_AIR)
|
||||
{
|
||||
|
||||
}
|
||||
else if (m_iMoveEnv == Move_environment.MOVEENV_WATER)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -4234,7 +4231,6 @@ namespace BrewMonster
|
||||
|
||||
public bool glb_GetForceAttackFlag(uint pdwParam)
|
||||
{
|
||||
|
||||
/*bool bForceAttack = false;
|
||||
CECInputCtrl* pInputCtrl = g_pGame.GetGameRun().GetInputCtrl();
|
||||
|
||||
@@ -4959,7 +4955,6 @@ namespace BrewMonster
|
||||
// ÏòÏ Trace µØÐκͽ¨Öþ£¬²¢·µ»ØµÚÒ»¸öÅöײµãµÄÇé¿ö
|
||||
bool VertRayTrace(Vector3 vPos, ref Vector3 vHitPos, ref A3DVECTOR3 vHitNormal, float DeltaY)
|
||||
{
|
||||
|
||||
Vector3 vTerrainPos = Vector3.zero;
|
||||
Vector3 vTerrainNormal = Vector3.zero;
|
||||
Vector3 vBuildingPos = Vector3.zero;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace BrewMonster
|
||||
[SerializeField] private int id;
|
||||
|
||||
private const float FadeTime = 0.1f;
|
||||
private const FadeMode FadeMode = Animancer.FadeMode.FixedDuration;
|
||||
private const FadeMode FadeMode = Animancer.FadeMode.NormalizedDuration;
|
||||
QueueActionEvent queueActionEvent;
|
||||
|
||||
private void PlayActionEventHandler(PlayActionEvent @event)
|
||||
@@ -31,7 +31,7 @@ namespace BrewMonster
|
||||
_animationList = _animationQueue.ToList();
|
||||
return;
|
||||
}
|
||||
InternalPlayAnimation(@event.AnimationName);
|
||||
InternalPlayAnimation(@event.AnimationName, @event.ITransTime);
|
||||
}
|
||||
public void InitPlayerEventDoneHandler()
|
||||
{
|
||||
@@ -130,7 +130,8 @@ namespace BrewMonster
|
||||
}
|
||||
string animName = _animationQueue.Dequeue();
|
||||
_animationList = _animationQueue.ToList();
|
||||
InternalPlayAnimation(animName);
|
||||
//TODO: default fadetime = 200 remake later
|
||||
InternalPlayAnimation(animName,200);
|
||||
}
|
||||
void ApplyDamage()
|
||||
{
|
||||
@@ -160,7 +161,7 @@ namespace BrewMonster
|
||||
/// <param name="fadeMode"></param>
|
||||
private void InternalPlayAnimation(string animationName, float duration = FadeTime, FadeMode fadeMode = FadeMode)
|
||||
{
|
||||
_currentState = namedAnimancer.TryPlay(animationName, duration, fadeMode);
|
||||
_currentState = namedAnimancer.TryPlay(animationName, duration / 1000, fadeMode);
|
||||
_currentAnimationName = animationName;
|
||||
if (_currentState == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user