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