Example #1
0
 private void _OnCarringWeapoChanged(Gun.Weapons carringWeapo)
 {
     if (OnCarringWeapoChanged != null)
     {
         OnCarringWeapoChanged(carringWeapo);
     }
 }
Example #2
0
    public void UpdateTexture(Vector2 position, GameObject objectToExplode, BoxCollider2D boxCol, int explosionRadius, Gun.Weapons weaponToExplode)
    {
        this.position        = position;
        this.objectToExplode = objectToExplode;
        this.boxCol          = boxCol;
        this.explosionRadius = explosionRadius;
        this.weaponToExplode = weaponToExplode;

        updatePix = true;
    }
Example #3
0
 public void SetGunType(Gun.Weapons weapon)
 {
     _gun.SetCarringWeapo(weapon);
 }