21 lines
481 B
C#
21 lines
481 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|