void Start() { resetHurtTimer = hurtTimer; CheckpointBox = GameObject.Find("/Player/LookAt/"); WarpPortal.SetActive(false); GameEnd = false; AmmoShot = true; originalPos = camTransform.localPosition; lives = 9; health = 100; SetCountHealth(); SetCountLives(); BossFireBallDam = false; PickupText.text = ""; // Set Timer variables and Speed redScreenFlashTimerStart = redScreenFlashTimer; whiteScreenFlashTimerStart = whiteScreenFlashTimer; FadeTime = 0.0f; FadeSpeed = 1.0f; Lava = false; // Set all guns to be off or on Assault = 1; flak = 1; plasma = 1; rail = 1; rocket = 1; bfgproton = 1; LastCheckPoint = CheckpointBox.transform.position; // Access all weapon scripts PistolScript = GetComponent <Pistol>(); AssaultRifleScript = GetComponent <AssaultRifle>(); FlakCannonScript = GetComponent <FlakCannon>(); PlasmaRifleScript = GetComponent <PlasmaRifle>(); BFGProtonScript = GetComponent <BFGProton>(); RailGunScript = GetComponent <RailGun>(); RocketLauncherScript = GetComponent <RocketLauncher>(); // Set all weapon scripts to true or false ShutOffAllWeapons(); SetupPistol(); }
public Gyrocopter(Unit9 owner, MultiSleeper abilitySleeper, Sleeper orbwalkSleeper, ControllableUnitMenu menu) : base(owner, abilitySleeper, orbwalkSleeper, menu) { this.ComboAbilities = new Dictionary <AbilityId, Func <ActiveAbility, UsableAbility> > { { AbilityId.gyrocopter_rocket_barrage, x => this.barrage = new NukeAbility(x) }, { AbilityId.gyrocopter_homing_missile, x => this.missile = new NukeAbility(x) }, { AbilityId.gyrocopter_flak_cannon, x => this.flak = new FlakCannon(x) }, { AbilityId.gyrocopter_call_down, x => this.callDown = new NukeAbility(x) }, { AbilityId.item_phase_boots, x => this.phase = new SpeedBuffAbility(x) }, { AbilityId.item_hurricane_pike, x => this.pike = new HurricanePike(x) }, { AbilityId.item_force_staff, x => this.force = new ForceStaff(x) }, { AbilityId.item_manta, x => this.manta = new BuffAbility(x) }, { AbilityId.item_mjollnir, x => this.mjollnir = new ShieldAbility(x) }, }; this.MoveComboAbilities.Add(AbilityId.gyrocopter_homing_missile, _ => this.missile); }