Esempio n. 1
0
        public ProcessState(ProductionUnit u)
        {
            unit  = u;
            timer = unit.process_time;

            timer_view = unit.timer.GetComponent <Utilits.Timer>();
            timer_view.InitFull();
        }
Esempio n. 2
0
        public ProcessState(GameObject go, float t)
        {
            field     = go;
            unit      = field.GetComponent <ProductionFieldUnit>();
            timer     = t;
            wait_time = t;

            unit.product_icon.GetComponent <SpriteRenderer>().sprite =
                ResourcesController.get_instance().product_resources.get_big_by_type(unit.cur_type);


            timer_view = unit.timer.GetComponent <Utilits.Timer>();
            timer_view.InitFull();
        }