protected override void Action() { CameraMover cameraMover = Camera.main.GetComponent <CameraMover>(); cameraMover.SetCameraPoint(cameraPoint); if (interfaceToEnable != null) { interfaceToEnable.SetActive(true); Clickable[] clickables = GetComponentsInChildren <Clickable>(true); foreach (Clickable clickable in clickables) { clickable.isSelected = false; } } if (interfaceToDisable != null) { Clickable[] clickables = GetComponentsInChildren <Clickable>(true); foreach (Clickable clickable in clickables) { clickable.isSelected = false; } interfaceToDisable.SetActive(false); } if (clickableToEnable != null) { clickableToEnable.enabled = true; clickableToEnable.Enable(); } if (clickableToDisable != null) { clickableToDisable.Disable(); clickableToDisable.enabled = false; } }