Esempio n. 1
0
 void Update()
 {
     c = negro.GetComponent <coleta>();
     if (c.pontos == 2)
     {
         if (net == 0)
         {
             Instantiate(buraco, transform.position, Quaternion.identity);
             net = net + 1;
         }
     }
 }
 public XMLColeta()
 {
     Coleta               = new coleta();
     Medidor              = new coletaMedidor();
     Energia              = new coletaEnergia();
     Engenharia           = new coletaEngenharia();
     Auditoria            = new coletaAuditoria();
     CompPerda            = new coletaComp_perda();
     leituraEnergia       = new coletaEnergiaLeitura_energ[300];
     energiaIndex         = 0;
     Alarmes              = new coletaLeitura_alme[300];
     alarmeIndex          = 0;
     leituraEngenharia    = new coletaEngenhariaLeitura_eng[300];
     engenhariaIndex      = 0;
     leituraQlde          = new coletaLeitura_qlde[300];
     qldeIndex            = 0;
     leituraAud           = new coletaAuditoriaLeitura_aud[300];
     audIndex             = 0;
     leituraCompPerda     = new coletaComp_perdaLeitura_cp[300];
     compPerdaIndex       = 0;
     validationErrorArray = new string[1];
     validationErrorIndex = 0;
     initialized          = true;
 }