GameData

using UnityEngine;
using System.Collections.Generic;

public class GameData : MonoBehaviour
{
  public Texture2D beginStateSplash;
  public Texture2D lostStateSplash;
  public Texture2D wonStateSplash;
  
  public List<GameObject> cameras;
  
  private int playerLivesSelected = 2;
  private int sceneBeginningScore;
  
  [HideInInspector]
  public int playerLives;
  [HideInInspector]
  public int score;
    
  void Start ()
  {
    playerLives = playerLivesSelected;
  }
  
  public void ResetPlayer()
  {
    playerLives = playerLivesSelected;
    score = sceneBeginningScore;
  }
  
  public void SetPlayerLives(int livesSelected)
  {
    playerLivesSelected = livesSelected;
    playerLives = livesSelected;
  }
  
  public void SetScore()
  {
    sceneBeginningScore = score;
  }
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.236.70