예제 #1
0
파일: Fly.cs 프로젝트: 741645596/batgame
 /// <summary>
 /// 获取飞行信息
 /// </summary>
 public void GetFlyInfo()
 {
     if (CurrentAction == null)
     {
         return;
     }
     if (CurrentAction is GridActionCmdFly)
     {
         GridActionCmdFly Fly = CurrentAction as GridActionCmdFly;
         m_FlyDir = Fly.GetLastFlyDir();
     }
 }
예제 #2
0
파일: Fly.cs 프로젝트: 741645596/batgame
    /// <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);
        }
    }
예제 #3
0
파일: Fly.cs 프로젝트: 741645596/batgame
    /// <summary>
    /// 超出 初始视窗 区域
    /// </summary>
    void DetectOutOfVisualZone()
    {
        DoSpawnDolphine();

        if (CurrentAction == null)
        {
            return;
        }
        if ((CurrentAction is GridActionCmdFly))
        {
            GridActionCmdFly LineFly = CurrentAction as GridActionCmdFly;
            if (LineFly.CheckLineFly() == false)
            {
                return;
            }
        }
    }