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(); } }
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; }
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"); } }
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; }