示例#1
0
 public void SetPlan(FlightPlan plan)
 {
     _plan = plan;
     if (null != modelName)
     {
         modelName.text = _plan.Name;
     }
     nodalEditor.Load(plan.Data);
 }
示例#2
0
 private void PlanSelect(int value)
 {
     if (value == 0)
     {
         _editor.Init();
     }
     else
     {
         _editor.Load(_plans[value - 1].Data);
     }
 }
示例#3
0
    private IEnumerator WaitLoad()
    {
        //ici on doit s'assurer que le viasseau est charge
        while (!_ship.Loaded)
        {
            yield return(null);
        }

        if (_ship.Fleet > 0)
        {
            Fleet f = LocalDataManager.instance.GetFleetInfo(_ship.Fleet);

            NodalEditor editor = planningZone.GetComponentInChildren <NodalEditor>();
            editor.Load(f.Data);
        }

        Window window = GetComponentInParent <Window>();

        window.SetLoading(false);
    }