Exemple #1
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);
            }
Exemple #2
0
            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);
            }
Exemple #3
0
            protected Ammo get_key(Bullet_motor value)
            {
                var motor = value.GetComponent <Bullet_motor>();

                return(motor.ammo);
            }