コード例 #1
0
        void Start()
        {
            view = GetComponent <MenuUIView>();
            UserInterface.CurrentController = this;

            view.CustomTotalPlayers.onValueChanged.AddListener((p) => OnCustomPlayerCountChange(p));
            view.CustomStartingPosition.onValueChanged.AddListener((p) => OnCustomStartingPositionChange(p));

            OnCustomPlayerCountChange(view.CustomTotalPlayers.value);
            ReevaluateViews(view.MainView);
        }
コード例 #2
0
 private void Start()
 {
     view = GetComponent <MenuUIView>();
     ReevaluteSavedTabs();
 }