Exemple #1
0
 public ProjectilePull(AbilityConfiguration itemConfig,
                       IGenericReadonlySubscriptionAction <GunAbilityView> returnObjectToPull)
 {
     _pullObject = itemConfig.View.GetComponent <GunAbilityView>();
     _pullObject.Init(returnObjectToPull);
     _pullObject.gameObject.SetActive(false);
 }
        public GunController(AbilityConfiguration abilityItemConfig)
        {
            _returnObjectToPull = new GenericSubscriptionAction <GunAbilityView>();
            _returnObjectToPull.SubscribeOnChange(OnReturnObjectToPull);

            _abilityItemConfig = abilityItemConfig;
            _gunPull           = new ProjectilePull(abilityItemConfig, _returnObjectToPull);
        }
Exemple #3
0
 public void Init(IGenericReadonlySubscriptionAction <GunAbilityView> initObject)
 {
     _onTriggerSubscription = initObject;
 }
Exemple #4
0
 private void Awake()
 {
     _button.onClick.AddListener(OnStartButtonClick);
     _changeGameStateAction = new GenericSubscriptionAction <GameState>();
 }