Ejemplo n.º 1
0
        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.weaponsInteractor = Game.GetInteractor <WeaponsInteractor>();
 }
Ejemplo n.º 3
0
 protected void InitializeWeapons()
 {
     this.InitializeBase();
     this.weaponsInteractor = Game.GetInteractor <WeaponsInteractor>();
 }