Ejemplo n.º 1
0
 void Awake()
 {
     singleton = this;
 }
Ejemplo n.º 2
0
 void OnDestroy()
 {
     singleton = null;
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     if(autoSetup == true){
         gameManager = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameManager1>();
         playerCtrlSetup = GameObject.FindGameObjectWithTag("GameController").GetComponent<PlayerCtrlSetup>();
     }
 }