Esempio n. 1
0
    private void Start()
    {
        _editor = GetComponentInChildren <NodalEditor>();
        clearButton.onClick.AddListener(_editor.Init);
        launchButton.onClick.AddListener(OnLauch);
        plans.onValueChanged.AddListener(PlanSelect);

        plans.options.Clear();
        _plans = LocalDataManager.instance.GetFlightPlans(LocalDataManager.instance.LocalCorporation);
        plans.options.Add(new Dropdown.OptionData("Custom"));
        foreach (FlightPlan f in _plans)
        {
            plans.options.Add(new Dropdown.OptionData(f.Name));
        }

        plans.value = 0;
        plans.RefreshShownValue();
    }
Esempio n. 2
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);
    }
Esempio n. 3
0
 private void Start()
 {
     _editor = GetComponentInParent <NodalEditor>();
 }