private void OnEnable() { this.weaponsInteractor = Game.GetInteractor <WeaponsInteractor>(); this.kinematicInteractor = Game.GetInteractor <KinematicWeaponInteractor>(); this.blasterInteractor = Game.GetInteractor <BlasterWeaponInteractor>(); this.laserInteractor = Game.GetInteractor <LaserWeaponInteractor>(); this.kinematicToggle.OnOn.AddListener(OnKinematicSelected); this.blasterToggle.OnOn.AddListener(OnBlasterSelected); this.laserToggle.OnOn.AddListener(OnLaserSelected); this.SetToggles(); this.playButton.OnClick.AddListener(OnPlayButtonClicked); this.appearenceButton.OnClick.AddListener(OnAppearenceButtonClicked); this.menuButton.OnClick.AddListener(OnMenuButtonClicked); }
private void Awake() { this.InitializeWeapons(); this.blasterInteractor = Game.GetInteractor <BlasterWeaponInteractor>(); }
private void Start() { this.interactor = Game.GetInteractor <BlasterWeaponInteractor>(); this.Initialize(this.interactor); }