protected override void OnActivateCustomActions() { _nonInteractableTestPLD = new NonInteractableTestPLD("Non Interactable Val"); _interactableTestPLD = new InteractableTestPLD(true); _nonInteractableTestCompositePLD = new List <NonInteractableTestCompositePLD>() { new NonInteractableTestCompositePLD("1"), new NonInteractableTestCompositePLD("2"), new NonInteractableTestCompositePLD("3") }; _interactableTestCompositePLD = new List <InteractableTestCompositePLD>() { new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true) }; NotifyPropertyChanged(); }
private void Update() { if (Input.GetKeyUp(KeyCode.Space)) { ActivateUI(); } if (Input.GetKeyUp(KeyCode.LeftAlt)) { DeactivateUI(); } #region View Test Code if (Input.GetKeyUp(KeyCode.Z)) { _nonInteractableTestPLD = new NonInteractableTestPLD("Non Interactable Val 2"); NotifyPropertyChanged(); } if (Input.GetKeyUp(KeyCode.X)) { _nonInteractableTestPLD = new NonInteractableTestPLD("Non Interactable Val 3"); NotifyPropertyChanged(); } #endregion #region CompositeView Test Code if (Input.GetKeyUp(KeyCode.C)) { _nonInteractableTestCompositePLD = new List <NonInteractableTestCompositePLD>() { new NonInteractableTestCompositePLD("1"), new NonInteractableTestCompositePLD("2"), new NonInteractableTestCompositePLD("3"), new NonInteractableTestCompositePLD("4") }; NotifyPropertyChanged(); } if (Input.GetKeyUp(KeyCode.V)) { _nonInteractableTestCompositePLD = new List <NonInteractableTestCompositePLD>() { new NonInteractableTestCompositePLD("1"), new NonInteractableTestCompositePLD("2"), }; NotifyPropertyChanged(); } if (Input.GetKeyUp(KeyCode.B)) { _interactableTestCompositePLD = new List <InteractableTestCompositePLD>() { new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true) }; NotifyPropertyChanged(); } if (Input.GetKeyUp(KeyCode.N)) { _interactableTestCompositePLD = new List <InteractableTestCompositePLD>() { new InteractableTestCompositePLD(true), new InteractableTestCompositePLD(true), }; NotifyPropertyChanged(); } #endregion }