void Awake()
 {
     switcher = GetComponentInParent<ControlSwitcher>();
     if (switcher == null)
     {
         Debug.LogError("Could not Find Switcher");
     }
 }
 public WelcomeForm()
 {
     InitializeComponent();
     controlSwitcher = new ControlSwitcher(this);
     sidebarButtons  = new SidebarButtons(new List <BunifuFlatButton> {
         authPanelButton, collectionsPanelButton, filesPanelButton, policiesPanelButton, usersPanelButton
     }, this);
 }
Beispiel #3
0
        private void EnableViewControl()
        {
            viewControl = new ControlSwitcher(
                new ControlPair(lbl1, airportMapControl),
                new ControlPair(lbl2, metarViewer),
                new ControlPair(lbl3, desForcast));

            viewControl.Subscribed = true;
        }
Beispiel #4
0
    protected override void KillShip(int killerId)
    {
        if (switcher == null)
        {
            switcher = GetComponentInParent<ControlSwitcher>();

        }
        switcher.PlayerDeath();
    }
Beispiel #5
0
        private void EnableViewControl()
        {
            viewControl = new ControlSwitcher(
                new ControlPair(acLbl, acMenu),
                new ControlPair(fuelLbl, fuelMenu),
                new ControlPair(tolbl, toMenu),
                new ControlPair(ldgLbl, ldgMenu),
                new ControlPair(miscLbl, miscInfoMenu),
                new ControlPair(aboutLbl, aboutMenu));

            viewControl.Subscribed = true;
        }
 public void Switch(UserControl uc, bool sidebar = true) => ControlSwitcher.Switch(uc, sidebar);
 /// <summary>
 /// Méthode appelée quand on clique sur le bouton inscription
 /// </summary>
 private void Register_Click(object sender, RoutedEventArgs e)
 {
     ControlSwitcher.Switch(new RegistrationView(), false);
 }
Beispiel #8
0
 public void SwitchUserControlFailed() => ControlSwitcher.Switch(null);
Beispiel #9
0
 public void SwitchViewFailed() => ControlSwitcher.Switch(new ConnectionView());
Beispiel #10
0
 // Use this for initialization
 void Start()
 {
     LoadPlayerStats();
     GameEventSystem.RegisterSubScriber(this);
     playerInfo = GetComponent<PlayerInfo>();
     switcher = GetComponent<ControlSwitcher>();
 }
Beispiel #11
0
 // Use this for initialization
 void Start()
 {
     switcher = GetComponent<ControlSwitcher>();
 }
Beispiel #12
0
 void Awake()
 {
     switcher = gameObject.GetComponent<ControlSwitcher>();
 }
Beispiel #13
0
 protected override void Awake()
 {
     base.Awake();
     switcher = GetComponentInParent<ControlSwitcher>();
 }