private void CellMouseBTNDown(EventMgr.MouseButtonDownEventInfo info) { if (player == null) { return; } if (GameCtrl.IsOnlineGame) { lock (castingMutex) { if (!expectedCasting) { expectedCasting = true; DataSync.SyncMouseButton0Down(player, Gamef.SystemTimeInMillisecond); } } } else { // 为技能设置施法时刻 skillTable.CurrentCell.SetInstant(Gamef.SystemTimeInMillisecond); // 为技能设置目标 if (skillTable.CurrentSkill.Data.IsTracking && skillTable.CurrentSkill is ITracking it) { it.Target = AimController.Instance.TargetForStrafeSkill; } skillTable.CurrentCell.Start(); } }
private void CellMouseBTNDown(EventMgr.MouseButtonDownEventInfo info) { SkillCells[currentSkillNum - 1].OnMouseButtonDown(); }