private void Awake() { if ((instancia != this) && (instancia != null)) { Destroy(this.gameObject); return; } else { instancia = this; DontDestroyOnLoad(gameObject); } }
private void Start() { mov = GetComponent <MovimentacaoTopDown>(); source = GetComponent <AudioSource>(); }