protected override void _init_cache() { base._init_cache(); if (!rol) { rol = GetComponent <chibi.rol_sheet.Rol_sheet>(); } if (!rol) { debug.error("no encontro un 'Rol_sheet'"); } if (!guns_patter_container) { debug.error("no esta asignado el contenedor de los gun patters"); } find_gun_patters(); if (!current_patter) { debug.warning( "no esta asignado el actual patron de disparo se usara " + "el primer elemento en los patroners"); current_patter = patters[0]; } debug.log(this.name + " " + "init_cache"); }
protected override void _init_cache() { base._init_cache(); rol = GetComponent <chibi.rol_sheet.Rol_sheet>(); if (!rol) { debug.error("no encontro un 'Rol_sheet'"); } dodger_set.add(this); }
protected override void _init_cache() { base._init_cache(); radar = new chibi.radar.Radar_box(radar); rol = GetComponent <chibi.rol_sheet.Rol_sheet>(); if (!rol) { Debug.LogError(string.Format( "[fish controller] no encontro un 'Rol_sheet' en '{0}'", helper.game_object.name.full(this))); } }
public virtual Bullet_motor instanciate( Vector3 position, chibi.rol_sheet.Rol_sheet owner) { Bullet_motor obj = instanciate(position); var controller = obj.GetComponent <Controller_bullet>(); var motor = obj.GetComponent <Bullet_motor>(); motor.enabled = false; var damages = controller.damages; foreach (var damage in damages) { damage.owner = owner; } return(obj); }
protected override void _init_cache() { base._init_cache(); if (use_hp_from_rol) { if (!rol) { rol = GetComponent <chibi.rol_sheet.Rol_sheet>(); } if (!rol) { Debug.LogError(string.Format( "[hp_engine] no se encontro un Rol_sheet en '{0}'", helper.game_object.name.full(this))); } stat = rol.hp; } }
public virtual bool use(chibi.rol_sheet.Rol_sheet rol_sheet) { throw new System.NotImplementedException(); }
public void use(chibi.rol_sheet.Rol_sheet character) { Debug.Log(item.name); item.use(character); }
public Buff_attacher(Buff buff, chibi.rol_sheet.Rol_sheet rol_sheet) { this.buff = buff; this.rol_sheet = rol_sheet; attach(); }