示例#1
0
        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");
        }
示例#2
0
 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);
 }
示例#3
0
 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)));
     }
 }
示例#4
0
            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);
            }
示例#5
0
 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;
     }
 }
示例#6
0
 public virtual bool use(chibi.rol_sheet.Rol_sheet rol_sheet)
 {
     throw new System.NotImplementedException();
 }
示例#7
0
 public void use(chibi.rol_sheet.Rol_sheet character)
 {
     Debug.Log(item.name);
     item.use(character);
 }
示例#8
0
 public Buff_attacher(Buff buff, chibi.rol_sheet.Rol_sheet rol_sheet)
 {
     this.buff      = buff;
     this.rol_sheet = rol_sheet;
     attach();
 }