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