示例#1
0
        protected override void _init_cache()
        {
            base._init_cache();

            catch_radar = new chibi.radar.Radar_box(catch_radar);
            dodge_radar = new chibi.radar.Radar_box(dodge_radar);

            hp_motor = GetComponent <chibi.damage.motor.HP_engine>();
            if (!hp_motor)
            {
                debug.error("no se encontro un hp_engine");
            }

            counter_pomodoro           = Pomodoro.CreateInstance <Pomodoro>();
            counter_pomodoro.frecuency = counter_time;
            counter_pomodoro.reset();
            hp_motor.on_died += on_died;
        }
示例#2
0
 protected override void _init_cache()
 {
     base._init_cache();
     pomodoro           = Pomodoro.CreateInstance <Pomodoro>();
     pomodoro.frecuency = life_time;
 }