|
@@ -765,21 +765,29 @@ public class GameManager : MonoSingleton<GameManager>
|
|
|
m_SettingPanel.gameObject.SetActive(true);
|
|
|
m_EditorPanel.Init();
|
|
|
m_SettingPanel.Init();
|
|
|
- if (RouteCtr.List_route[0]&&RouteCtr.List_route[0].GetComponent<LineRenderer>()&& RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount > 0)
|
|
|
+ yield return new WaitForSeconds(0.5f);
|
|
|
+ try
|
|
|
+ {
|
|
|
+ if (RouteCtr && RouteCtr.List_route != null && RouteCtr.List_route[0] && RouteCtr.List_route[0].GetComponent<LineRenderer>() && RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount > 0)
|
|
|
+ {
|
|
|
+ Vector3[] v3list = new Vector3[RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount];
|
|
|
+ RouteCtr.List_route[0].GetComponent<LineRenderer>().GetPositions(v3list);
|
|
|
+ Player.MovePoints = v3list.ToList();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ m_IroBot.gameObject.SetActive(true);
|
|
|
+ m_IroBot.Points = Player.MovePoints;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ catch
|
|
|
{
|
|
|
- yield return new WaitForSeconds(5f);
|
|
|
- Vector3[] v3list = new Vector3[RouteCtr.List_route[0].GetComponent<LineRenderer>().positionCount];
|
|
|
- RouteCtr.List_route[0].GetComponent<LineRenderer>().GetPositions(v3list);
|
|
|
- Player.MovePoints = v3list.ToList();
|
|
|
-
|
|
|
-
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- m_IroBot.gameObject.SetActive(true);
|
|
|
- m_IroBot.Points = Player.MovePoints;
|
|
|
-
|
|
|
}
|
|
|
IsRuning = true;
|
|
|
m_SetBtn.gameObject.SetActive(true);
|