23 lines
464 B
C#
23 lines
464 B
C#
|
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()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|