Example #1
0
    void HandleWaterSource(Collider col)
    {
        Source source = col.GetComponent <Source>();

        Debug.LogWarning("adding water");
        if (WaterLoads < maxLoads)
        {
            WaterLoads += source.GetLoad();
            AcidLoads   = 0;
            playerModel.ChangeColorToWater();
        }
    }