Exemplo n.º 1
0
 void Awake()
 {
     PkB = GameObject.FindGameObjectWithTag("DataBase").GetComponent<PkBase>();
     Mov = GameObject.FindGameObjectWithTag("DataBase").GetComponent<Mov>();
     Hab = GameObject.FindGameObjectWithTag("DataBase").GetComponent<Habilidad>();
     CId1 = GameObject.FindGameObjectWithTag("Pk1").GetComponent<CaracId>();
     CId2 = GameObject.FindGameObjectWithTag("Pk2").GetComponent<CaracId>();
 }
Exemplo n.º 2
0
 void Awake()
 {
     Cbt = GameObject.FindGameObjectWithTag("DataBase").GetComponent<Combt>();
     Pkb = GameObject.FindGameObjectWithTag("DataBase").GetComponent<PkBase>();
     Pko = GameObject.FindGameObjectWithTag("DataBase").GetComponent<PkObjs>();
     if(Pk == true){Obj=false; Charact=false;
         PkId();}
     else if(Obj==true){Pk=false; Charact=false;
         ObjId();}
     else if(Charact==true){Pk=false; Obj=false;
         CharactId();}
 }