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); }
public virtual Bullet_motor instanciate( Vector3 position, rol_sheet.Rol_sheet owner) { Bullet_motor obj = instanciate(position); var controller = obj.GetComponent < chibi.controller.weapon.gun.bullet.Controller_bullet>(); var damages = controller.damages; foreach (var damage in damages) { damage.owner = owner; } return(obj); }
protected Ammo get_key(Bullet_motor value) { var motor = value.GetComponent <Bullet_motor>(); return(motor.ammo); }