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); }
private void EnableViewControl() { viewControl = new ControlSwitcher( new ControlPair(lbl1, airportMapControl), new ControlPair(lbl2, metarViewer), new ControlPair(lbl3, desForcast)); viewControl.Subscribed = true; }
protected override void KillShip(int killerId) { if (switcher == null) { switcher = GetComponentInParent<ControlSwitcher>(); } switcher.PlayerDeath(); }
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); }
public void SwitchUserControlFailed() => ControlSwitcher.Switch(null);
public void SwitchViewFailed() => ControlSwitcher.Switch(new ConnectionView());
// Use this for initialization void Start() { LoadPlayerStats(); GameEventSystem.RegisterSubScriber(this); playerInfo = GetComponent<PlayerInfo>(); switcher = GetComponent<ControlSwitcher>(); }
// Use this for initialization void Start() { switcher = GetComponent<ControlSwitcher>(); }
void Awake() { switcher = gameObject.GetComponent<ControlSwitcher>(); }
protected override void Awake() { base.Awake(); switcher = GetComponentInParent<ControlSwitcher>(); }