CampfireParty.Building_Pyre.ChangeFireTexture C# (CSharp) Method

ChangeFireTexture() protected method

protected ChangeFireTexture ( Material &texture ) : void
texture UnityEngine.Material
return void
        protected void ChangeFireTexture(ref Material texture)
        {
            float textureSelector = Rand.Value;
            if (textureSelector < 0.33f)
            {
                texture = fireTextureA;
            }
            else if (textureSelector < 0.66f)
            {
                texture = fireTextureB;
            }
            else
            {
                texture = fireTextureC;
            }
        }