Exemple #1
0
 // Use this for initialization
 void Start()
 {
     gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> ();
     player = GameObject.FindGameObjectWithTag ("Player").GetComponent<AsteroidPlayerShip> ();
     asteroidScore = GameObject.FindGameObjectWithTag ("AsteroidScore").GetComponent<AsteroidScore> ();
     // stats = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<Stats> ();
 }
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     score        = 0;
     playerHealth = 100;
     DontDestroyOnLoad(this);
 }
Exemple #3
0
 void Start()
 {
     mainCamera = GameObject.FindGameObjectWithTag ("MainCamera");
     asteroidGameManager = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> ();
 }
Exemple #4
0
 // Use this for initialization
 void Start()
 {
     gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> ();
     player = GameObject.FindGameObjectWithTag ("Player").GetComponent<AsteroidPlayerShip> ();
 }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     asteroidScore = GameObject.FindGameObjectWithTag ("AsteroidScore").GetComponent<AsteroidScore> ();
     gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> ();
 }