Example #1
0
        public override void Initialize()
        {
            fmc  = gs.GetComponent <FireModeComponent>();
            fmvc = gs.GetComponent <FireModeVisualComponent>();

            fmvc.rel_pos = fmvc.fire_mode_toggle.localPosition;
            fmvc.rel_rot = fmvc.fire_mode_toggle.localRotation;
        }
Example #2
0
        public override void Initialize()
        {
            fmc = gs.GetComponent <FireModeComponent>();

            if (Random.Bool())
            {
                fmc.auto_mod_stage  = AutoModStage.ENABLED;
                fmc.auto_mod_amount = 1f;
            }
            else
            {
                fmc.auto_mod_stage  = AutoModStage.DISABLED;
                fmc.auto_mod_amount = 0f;
            }
        }
Example #3
0
 public override void Initialize()
 {
     fmc = gs.GetComponent <FireModeComponent>();
     fmc.current_fire_mode_index = Random.Int(0, fmc.fire_modes.Length);
 }
 public override void Initialize()
 {
     fmc = gs.GetComponent <FireModeComponent>();
 }