예제 #1
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);
        }
    }