/// <summary> /// 获取飞行信息 /// </summary> public void GetFlyInfo() { if (CurrentAction == null) { return; } if (CurrentAction is GridActionCmdFly) { GridActionCmdFly Fly = CurrentAction as GridActionCmdFly; m_FlyDir = Fly.GetLastFlyDir(); } }
/// <summary> /// 设置轨迹飞行Action /// </summary> /// <param name="pos">手势滑动点列表</param> public void SetTrailFly(List <Vector3> pos) { CurrentAction = FlyActionCmdFactory.Create(m_Owner, pos, m_Owner.m_Attr.Flyspeed, m_Owner.m_Attr.ModelType); #if UNITY_EDITOR_LOG string str = ""; for (int i = 0; i < pos.Count; i++) { str += pos[i] + ", "; } FileLog.write(m_Owner.SceneID, "SetTrailFly " + str); #endif GridActionCmdFly fly = CurrentAction as GridActionCmdFly; if (fly != null) { fly.SetFlyCollisionInfo(m_FlyInfo); } }
/// <summary> /// 超出 初始视窗 区域 /// </summary> void DetectOutOfVisualZone() { DoSpawnDolphine(); if (CurrentAction == null) { return; } if ((CurrentAction is GridActionCmdFly)) { GridActionCmdFly LineFly = CurrentAction as GridActionCmdFly; if (LineFly.CheckLineFly() == false) { return; } } }