Пример #1
0
 /// <summary>
 /// 포인트를 선택했을때 이동하는 길들을 보여주는 용도
 /// </summary>
 static public void DrawPathLines(ref RF_Linker_Station station, DrawMode _mode)
 {
     for (int iter = 1; iter < station.transform.childCount; ++iter)
     {
         var TempLine = station.transform.GetChild(iter).GetComponent <RF_Linker_Path>();
         if (TempLine && TempLine.Next)
         {
             Linker_Path_Editor.DrawPathData(ref TempLine, _mode, "Path:" + iter);
         }
     }
 }
Пример #2
0
        void ViewPath(ref RF_Follower_Base _Follower)
        {
            Linker_Path_Editor.DrawPathData(ref _Follower.CurrentPath, DrawMode.Curve, "이동경로");

            Handles.color = Color.white;
            Handles.DrawDottedLine(
                _Follower.transform.position
                , _Follower.CurrentPath.Next.StationPosition
                , ConstValue.DotLineGap);

            Handles.color = Color.green;
            Handles.DrawDottedLine(
                _Follower.transform.position
                , _Follower.CurrentPath.StationPosition
                , ConstValue.DotLineGap);

            Handles.Label(_Follower.transform.position + (Vector3.up * 4.0f), "Distance:" + Mathf.Round(_Follower.NormalScalar * 10000f) * 0.01f + "%", StaticValue.LabelStyle);
        }