/*public void SetupDie() * { * // sets up the die * }*/ /*public void SetupCameras() * { * // sets up the cameras * GameData.SetMainCamera(Camera.allCameras[0]); * GameData.SetDieCamera(Camera.allCameras[1]); * }*/ public void RollDie(GameData.Mode mode) { //analytics if (GameData.GetGameMode() == GameData.Mode.NormalRoll) { GameGUI.analyticsGameCompleted.Rolled(); } // Switches to the roll screen // switch view (main camera position) GameData.SetGameMode(mode); Camera.main.transform.position = GameData.GetDieCameraPosition(); Camera.main.transform.eulerAngles = GameData.GetDieCameraRotation(); // show title and roll button GameGUI.ShowRollScreen(); }