Exemplo n.º 1
0
 void Start()//벽돌 초기 셋팅
 {
     data_tr = GameObject.Find("data_manager").GetComponent <data>();
     noob    = GameObject.Find("Main Camera").GetComponent <cr>();
     Tt      = GameObject.Find("Canvas").transform.Find("Text").GetComponent <score>();
     ani     = Resources.Load <GameObject>("prefab/Ani");
     play    = this.GetComponent <AudioSource>();
     m_d     = D_Option.Mode_data;
     if (D_Option.Mode_data == 1)
     {
         idx = Random.Range(0, ((int)(data_tr.cl_material.Length * 0.5f)) + 1);
         GetComponent <Renderer>().material = data_tr.cl_material[idx * 2];
     }
     else
     {
         GetComponent <Renderer>().material = data_tr.cl_material[noob.Casual_br_cl()];
     }
     if (D_Option.Sound == true)
     {
         play.mute = false;
     }
     else
     {
         play.mute = true;
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     this.GetComponent <Transform>().localScale = new Vector3(110, 25, 110);
     this.transform.parent.transform.parent     = GameObject.Find("Cube").transform;
     scale = GameObject.Find("data_manager").GetComponent <data>();
     noob  = GameObject.Find("Main Camera").GetComponent <cr>();
     StartCoroutine("Mk_cl");
 }//방어막 기본 세팅
Exemplo n.º 3
0
 public void b()
 {
     GC.SuppressFinalize(this);
     this.a();
     this.az.Clear();
     this.n   = null;
     this.ag  = null;
     this.au  = null;
     this.at  = null;
     this.@as = null;
     this.ar  = null;
     this.aq  = null;
     this.ap  = null;
     this.ao  = null;
     this.an  = null;
     this.am  = null;
     this.al  = null;
     this.ak  = null;
     this.aj  = null;
     this.ai  = null;
     this.ah  = null;
     this.af  = null;
     this.ae  = null;
     this.ad  = null;
     this.ac  = null;
     this.ab  = null;
     this.aa  = null;
     this.z   = null;
     this.y   = null;
     this.x   = null;
     this.w   = null;
     this.v   = null;
     this.u   = null;
     this.t   = null;
     this.s   = null;
     this.r   = null;
     this.q   = null;
     this.p   = null;
     this.c   = null;
     this.av  = null;
     this.o   = null;
     this.m   = null;
     this.l   = null;
     this.k   = null;
     this.j   = null;
     this.i   = null;
     this.h   = null;
     this.g   = null;
     this.f   = null;
     this.e   = null;
     this.d   = null;
     this.b   = null;
     this.a   = null;
     this.aw  = null;
     this.ax  = null;
     this.ay  = null;
 }
Exemplo n.º 4
0
 void Start()//초기세팅
 {
     data_tr = GameObject.Find("data_manager").GetComponent <data>();
     noob    = GameObject.Find("Main Camera").GetComponent <cr>();
     Tt      = GameObject.Find("Canvas").transform.Find("Text").GetComponent <score>();
     ani     = Resources.Load <GameObject>("prefab/Cube_Particle");
     play    = this.GetComponent <AudioSource>();
     m_d     = D_Option.Mode_data;
     if (D_Option.Sound == true)
     {
         play.mute = false;
     }
     else
     {
         play.mute = true;
     }
 }
Exemplo n.º 5
0
        static void MoverCr(string path, DateTime fecha, int citaId)
        {
            if (!File.Exists(path))
            {
                return;
            }

            var fileName = Path.GetFileName(path);

            if (fileName == null)
            {
                return;
            }

            if (Db.citas.Find(citaId) == null)
            {
                throw new Exception("Cita incorrecta");
            }

            var crRottPath = new DirectoryInfo(_crPath);

            var yearPath = crRottPath.GetDirectories(fecha.Year.ToString()).Length == 0 ?
                           crRottPath.CreateSubdirectory(fecha.Year.ToString()) :
                           crRottPath.GetDirectories(fecha.Year.ToString())[0];

            var monthPath = yearPath.GetDirectories(fecha.Month.ToString()).Length == 0 ?
                            yearPath.CreateSubdirectory(fecha.Month.ToString()) :
                            yearPath.GetDirectories(fecha.Month.ToString())[0];


            var newPath = Path.Combine
                              (monthPath.FullName, fileName);

            if (File.Exists(newPath))
            {
                File.Delete(newPath);
                Thread.Sleep(100);
            }


            WaitForFile(path);

            File.Move(path, newPath);

            var cr = Db.crs.FirstOrDefault(c => c.CitaId == citaId);

            if (cr == null)
            {
                cr = new cr
                {
                    CitaId    = citaId,
                    Fecha     = fecha,
                    ArchivoCR = newPath
                };
                Db.Entry(cr).State = EntityState.Added;
            }
            else
            {
                cr.Fecha           = fecha;
                cr.ArchivoCR       = newPath;
                Db.Entry(cr).State = EntityState.Modified;
            }

            Db.SaveChanges();
        }
Exemplo n.º 6
0
 public ev(CoreManager A_0, PluginHost A_1, PluginCore A_2)
 {
     this.aw = A_0;
     this.ax = A_1;
     this.ay = A_2;
     this.a  = new b2(this.ay);
     this.az.Add(this.a);
     this.b = new j();
     this.az.Add(this.b);
     this.d = new aj();
     this.az.Add(this.d);
     this.e = new cd((FileService)this.aw.get_FileService(), this);
     this.az.Add(this.e);
     this.f = new d6();
     this.az.Add(this.f);
     this.g = new dv(this);
     this.az.Add(this.g);
     this.z = new s(this.aw);
     this.az.Add(this.z);
     this.h = new cs(this);
     this.az.Add(this.h);
     this.i = new dg(this);
     this.az.Add(this.i);
     this.j = new dl(this);
     this.az.Add(this.j);
     this.k = new eo(this);
     this.az.Add(this.k);
     this.l = new bh();
     this.az.Add(this.l);
     this.m = new fq();
     this.az.Add(this.m);
     this.o = new bw();
     this.az.Add(this.o);
     this.c = new cLogic(this.g, this.ay, this.z);
     this.az.Add(this.c);
     this.p = new cj(new cj.a(ad.a), A_1.get_Actions());
     this.az.Add(this.p);
     this.q = new b5(this.aw, this.ay);
     this.az.Add(this.q);
     this.r = new cz(this.ay, this.aw, this.ax, this.p);
     this.az.Add(this.r);
     this.s = new ag();
     this.az.Add(this.s);
     this.t = new fc(this.aw, this.ay);
     this.az.Add(this.t);
     this.u = new b0(this.aw, this.ay, this.p);
     this.az.Add(this.u);
     this.v = new el(this.aw);
     this.az.Add(this.v);
     this.w = new bd();
     this.az.Add(this.w);
     this.x = new bv(this.aw);
     this.az.Add(this.x);
     this.y = new a7(this.aw);
     this.az.Add(this.y);
     this.n = new fn(this.aw, this.p);
     this.az.Add(this.n);
     this.aa = new d0(this.aw);
     this.az.Add(this.aa);
     this.ab = new da(this.p, this.ay);
     this.az.Add(this.ab);
     this.ac = new bj();
     this.az.Add(this.ac);
     this.ad = new fs();
     this.az.Add(this.ad);
     this.ae = new b9();
     this.az.Add(this.ae);
     this.af = new en();
     this.az.Add(this.af);
     this.ah = new e0();
     this.az.Add(this.ah);
     this.ai = new ar();
     this.az.Add(this.ai);
     this.aj = new y(this.ai);
     this.az.Add(this.aj);
     this.ak = new cRechargeManager();
     this.az.Add(this.ak);
     this.al = new q();
     this.az.Add(this.al);
     this.am = new fr();
     this.az.Add(this.am);
     this.an = new ei(this.g, this.p);
     this.az.Add(this.an);
     this.ao = new ca(this.x, this.an);
     this.az.Add(this.ao);
     this.ap = new cr(this.ay);
     this.az.Add(this.ap);
     this.aq = new bp();
     this.az.Add(this.aq);
     this.ar = new ay(this.p);
     this.az.Add(this.ar);
     this.@as = new h();
     this.az.Add(this.@as);
     this.at = new du();
     this.az.Add(this.at);
     this.au = new ac();
     this.az.Add(this.au);
     this.ag = new cc();
     this.az.Add(this.ag);
 }