private void OnDisable() { if (elementGroup) { elementGroup.SetInActive(); } ActionSystem.RemoveGroup(this); }
private void OnEnable() { if (elementGroup) { elementGroup.SetActive(transform); } InitActionCommands(); ActionSystem.RegistGroup(this); }
protected override void InitInstence(ActionSystem actionSystem) { base.InitInstence(actionSystem); viewCameraParent = this.actionSystem.transform; mainCamera = Camera.main; Debug.Assert(mainCamera); viewCamera = UnityEngine.Object.Instantiate(mainCamera); viewCamera.gameObject.AddComponent <ViewCamera>(); viewCamera.transform.SetParent(this.actionSystem.transform); viewCamera.gameObject.SetActive(!mainCamera.isActiveAndEnabled); }
public PreviewController(ActionSystem system) { actionSystem = system; }
protected virtual void InitInstence(ActionSystem actionSystem) { this.actionSystem = actionSystem; }
private AngleCtroller(ActionSystem system) { actionSystem = system; }