Forest_Client/Forest/Assets/PhxhSDK/Phxh/TempObject/TempMaterialPropertyBlock.cs

21 lines
481 B
C#
Raw Normal View History

2024-06-12 15:01:54 +08:00
using UnityEngine;
namespace PhxhSDK
{
public static class TempMaterialPropertyBlock
{
static private MaterialPropertyBlock _instance;
public static MaterialPropertyBlock Instance
{
get
{
if (_instance == null)
{
_instance = new MaterialPropertyBlock();
}
_instance.Clear();
return _instance;
}
}
}
}