void Start() { energia = energiaP; valorIntento = valorIntentoP; valorAyuda = valorAyudaP; gameDataRef = GetComponent<GameData>(); estadoActivo = new StateLogin (this); }
public void SwitchState(InterfacesStados estadoNuevo) { estadoActivo = estadoNuevo; }
void Start() { gameDataRef = GetComponent<GameData>(); estadoActivo = new StateRegister (this); }