Exemple #1
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();
        }
Exemple #2
0
 public ReadyState(GameObject go)
 {
     field = go;
     unit  = field.GetComponent <ProductionFieldUnit>();
 }