Ejemplo n.º 1
0
    private void Start()
    {
        if (ShotgunDamageZone.GetComponent <ShotgunDamageZoneComponent>())
        {
            ShotgunDamageZone.GetComponent <ShotgunDamageZoneComponent>().Init(this);
        }

        if (ShotgunDamageZone.GetComponent <Renderer>())
        {
            shootingArea = ShotgunDamageZone.GetComponent <Renderer>();
        }

        //Init a Shooting component for that weapon
        shootingComponent = GetComponent <BaseWeaponShootingComponent>();
        shootingComponent.Init(this);
    }
Ejemplo n.º 2
0
 private void Start()
 {
     //Init a Shooting component for that weapon
     shootingComponent = GetComponent <BaseWeaponShootingComponent>();
     shootingComponent.Init(this);
 }