예제 #1
0
        private void Update()
        {
            if (IsGameOver())
            {
                // DO game over stuff
                Debug.Log("true");

                BSS.enabled = false;
                DisableAllActiveBalls();

                SessionData = new UltimatePinballSessionData(Player1Stats, Player2Stats);
                SaveManager.SaveUltimatePinballSession(SessionData);

                GoToEndScene();
            }
            else
            {
                Debug.Log("false");
            }


            // Run the game timer if the game type is set to it...
            if ((Game_Type == GameTypes.Timer) && (!IsGameOver() && (StartTimer)))
            {
                Timer -= Time.deltaTime;
            }
        }
예제 #2
0
        void Start()
        {
            LoadedData      = SaveManager.LoadLastUltimatePinballSession();
            PinballGameData = SaveManager.LoadUltimatePinball();

            Player1_LB_Data.PlayerScore = LoadedData.Player1Score;
            Player2_LB_Data.PlayerScore = LoadedData.Player2Score;

            Player1_LB_Data.PlayerGamemode = PinballGameData.LastGameTypeSelected;
            Player2_LB_Data.PlayerGamemode = PinballGameData.LastGameTypeSelected;
        }
예제 #3
0
 private void Awake()
 {
     BGM         = FindObjectOfType <GameManager>();
     SessionData = SaveManager.LoadLastUltimatePinballSession();
 }