Beispiel #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);
        }
Beispiel #2
0
 private void Awake()
 {
     this.InitializeWeapons();
     this.blasterInteractor = Game.GetInteractor <BlasterWeaponInteractor>();
 }
Beispiel #3
0
 private void Start()
 {
     this.interactor = Game.GetInteractor <BlasterWeaponInteractor>();
     this.Initialize(this.interactor);
 }