MWS_2021/voxelSpace/Assets/PlatformMaterial.cs

23 lines
464 B
C#
Raw Permalink Normal View History

2021-05-07 14:05:50 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlatformMaterial : MonoBehaviour
{
public Material lowDefinitionMaterial;
// Start is called before the first frame update
void Start()
{
#if UNITY_WEBGL
gameObject.GetComponent<Renderer>().material = lowDefinitionMaterial;
#endif
}
// Update is called once per frame
void Update()
{
}
}