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; }
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; } }
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>(); }