// Use this for initialization void Start() { option = " "; rgb = GetComponent <Rigidbody2D>(); matKeeper = GameObject.Find("Materias").GetComponent <MateriasKepper>(); que = GameObject.Find("Canvas").GetComponent <Preguntas>(); }
private void Awake() { if (matKepper == null) { matKepper = this; DontDestroyOnLoad(gameObject); } else if (matKepper != this) { Destroy(gameObject); } }
// Use this for initialization void Start() { matKeeper = GameObject.Find("Materias").GetComponent <MateriasKepper>(); }