Exemplo n.º 1
0
 protected override void _init_cache()
 {
     base._init_cache();
     hp = GetComponent <chibi.damage.motor.HP_engine>();
     manager_collision = GetComponent <Chibi_collision_manager>();
     action_handler    = GetComponent <chibi.action.Action_handler>();
     if (is_player)
     {
         player_setup();
     }
 }
Exemplo n.º 2
0
        protected override void _init_cache()
        {
            base._init_cache();

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

            hp_motor.on_died += on_died;
        }
Exemplo n.º 3
0
        protected override void _init_cache()
        {
            base._init_cache();

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

            hp_motor.on_died += on_died;
            if (!explotion_prefab)
            {
                debug.warning("no hay un prefab de explocion");
            }
        }
Exemplo n.º 4
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;
        }