| | |
| | |
|
| | | public abstract void RefreshLifeBar(ulong value);
|
| | |
|
| | | public void Die(uint killerServerInstID, int configID = 0)
|
| | | public void Die(uint killerServerInstID, int configID = 0, byte hurtType = (byte)HurtAttackType.Normal)
|
| | | {
|
| | | KillerServerInstID = killerServerInstID;
|
| | | DeadFlyID = configID;
|
| | | killHurtType = hurtType;
|
| | |
|
| | | Die();
|
| | | }
|
| | |
| | | private bool m_PushOrPull;
|
| | | private uint m_AttackerSID;
|
| | | private float m_LimitDistance;
|
| | | private float m_AddPer;
|
| | |
|
| | | public void StartBeatBack(uint attacker, int configID, Vector3 direction)
|
| | | public void StartBeatBack(uint attacker, int configID, Vector3 direction, HurtAttackType atkType = HurtAttackType.Normal)
|
| | | {
|
| | | SoBodyControl _config = ScriptableObjectLoader.LoadSoBodyControl(configID);
|
| | |
|
| | |
| | | m_BeatCurve = _config.curve;
|
| | | m_BeatTime = _config.duration;
|
| | |
|
| | | m_Factor = m_BeatCurve.keys[m_BeatCurve.length - 1].time;
|
| | | if (GeneralDefine.AtkTypeIncreasePushDis.ContainsKey((int)atkType))
|
| | | {
|
| | | m_AddPer = GeneralDefine.AtkTypeIncreasePushDis[(int)atkType];
|
| | | }
|
| | | else
|
| | | {
|
| | | m_AddPer = 1f;
|
| | | }
|
| | |
|
| | | m_Factor = m_BeatCurve.keys[m_BeatCurve.length - 1].time * m_AddPer;
|
| | | m_Factor = m_Factor / m_BeatTime;
|
| | |
|
| | | if (ActorType == GameObjType.gotNPC)
|