private void Awake() { if (GP == null) { DontDestroyOnLoad(gameObject); GP = this; } else if (GP != this) { Destroy(gameObject); } }
// Use this for initialization void Start() { GP = GetComponent <GeradorPersonagem>(); }