private void Awake() { if (IsApplicationNotInitialized()) { ScenesLoader.LoadScene(0, true, false, false); return; } Debug.Log($"[{nameof(BaseInitializer)}]: Initializing {gameObject.name}..."); Init(); }
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); } }
private void LoadStatisticsPage() { ScenesLoader.LoadScene(ApplicationScenes.StatisticsPage.ToString()); // ScenesLoader.UnloadScene(ApplicationScenes.MainMenu.ToString()); }
private void LoadUsersPage() { ScenesLoader.LoadScene(ApplicationScenes.UsersPage.ToString()); ScenesLoader.UnloadScene(ApplicationScenes.MainMenu.ToString()); }
public override void Start() { ScenesLoader.LoadScene(ApplicationScenes.MainMenu.ToString(), true, false); ScenesLoader.UnloadScene(ApplicationScenes.ApplicationInitializer.ToString()); }
private void ShowProductModel(GameObject productModel) { ProductModel = productModel; ScenesLoader.LoadScene(ApplicationScenes.Exhibition.ToString(), true, false); }
private void Construct(ScenesLoader scenesLoader) => scenesLoader.LoadScene(StacksScene);