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>(); }
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();} }