Beispiel #1
0
 private void Awake()
 {
     if (singleton == null)
     {
         singleton = this;
         return;
     }
     Destroy(this);
 }
Beispiel #2
0
 void Start()
 {
     TextLives.text         = lives.ToString();
     TextColecionaveis.text = colecionaveis.ToString();
     cd                 = 0;
     myTransform        = transform;
     gameRespawnManager = FindObjectOfType <respawnPlayer>();
     MonitorAtivado     = false;
     rb                 = GetComponent <Rigidbody2D>();
 }