public void SetPlan(FlightPlan plan) { _plan = plan; if (null != modelName) { modelName.text = _plan.Name; } nodalEditor.Load(plan.Data); }
private void PlanSelect(int value) { if (value == 0) { _editor.Init(); } else { _editor.Load(_plans[value - 1].Data); } }
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); }