Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        WeaponAttachments weaponAttachments = collision.gameObject.GetComponent <CharacterHandleWeapon>()._weaponAttachments;

        weaponAttachments?.CreateWeapon(_rifleWeapon);
        Destroy(gameObject);
    }
Exemplo n.º 2
0
 public StoreController(WeaponController weaponController, Player player, WeaponAttachments weaponAttachments, SignalBus bus)
 {
     _weaponController  = weaponController;
     _player            = player;
     _weaponAttachments = weaponAttachments;
     _bus = bus;
 }
Exemplo n.º 3
0
 private void Awake()
 {
     shotDelayHold      = _shotDelay;
     _weaponEffects     = GetComponentInChildren <WeaponEffects>();
     _weaponAttachments = GetComponentInParent <WeaponAttachments>();
 }