コード例 #1
0
        private void Start()
        {
            foreach (var effect in startEffects)
            {
                effect.Play();
            }

            this.weaponInteractor = Game.GetInteractor <LaserWeaponInteractor>();
        }
コード例 #2
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);
        }
コード例 #3
0
 private void Awake()
 {
     this.InitializeWeapons();
     this.laserInteractor = Game.GetInteractor <LaserWeaponInteractor>();
 }
コード例 #4
0
 private void Start()
 {
     this.interactor = Game.GetInteractor <LaserWeaponInteractor>();
     this.Initialize(this.interactor);
 }