private void Start() { eulerLookRotation = new Vector3(); productModel = Instantiate(ApplicationManager.Instance.AdminPageManager.ProductModel); productModel.transform.position = modelPointTransform.position; ScenesLoader.UnloadScene(ApplicationScenes.AdminPage.ToString()); }
private void Update() { if (Input.GetButtonDown("Cancel")) { ScenesLoader.UnloadScene(ApplicationScenes.Exhibition.ToString()); ScenesLoader.LoadScene(ApplicationScenes.AdminPage.ToString(), true, false); } if (Input.GetMouseButtonDown(0)) { clickButton = true; } if (Input.GetMouseButtonUp(0)) { clickButton = false; } if (clickButton) { eulerLookRotation.y += Input.GetAxisRaw("Mouse X") * rotationSpeed; eulerLookRotation.x += Input.GetAxisRaw("Mouse Y") * rotationSpeed; productModel.transform.rotation = Quaternion.Euler(eulerLookRotation); } }
public override void Start() { ScenesLoader.LoadScene(ApplicationScenes.MainMenu.ToString(), true, false); ScenesLoader.UnloadScene(ApplicationScenes.ApplicationInitializer.ToString()); }
private void LoadUsersPage() { ScenesLoader.LoadScene(ApplicationScenes.UsersPage.ToString()); ScenesLoader.UnloadScene(ApplicationScenes.MainMenu.ToString()); }
protected override void PostInit() => ScenesLoader.UnloadScene(gameObject.scene.name);