---@var BubbleParticles: UnityEngine.ParticleSystem
---@var WaterTrailParticles: UnityEngine.ParticleSystem
---@end

function OnUIPointerDown(uiType, handType)
    if uiType == UIType.Main then
        StartShooting()
    end
end

function OnUIPointerUp(uiType, handType)
    if uiType == UIType.Main then
        StopShooting()
    end
end

function StartShooting()
    self:SendMessageToAll("StartShootingRPC")
end

function StartShootingRPC()
    BubbleParticles.emission.enabled = true
    WaterTrailParticles.emission.enabled = true
end

function StopShooting()
    self:SendMessageToAll("StopShootingRPC")
end

function StopShootingRPC()
    BubbleParticles.emission.enabled = false
    WaterTrailParticles.emission.enabled = false
end
