1
This commit is contained in:
14
Unity/Scripts/ObjectMaterial/GetObjectMaterialByCollider.cs
Normal file
14
Unity/Scripts/ObjectMaterial/GetObjectMaterialByCollider.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit.ObjectMaterial
|
||||
{
|
||||
public class GetObjectMaterialByCollider : MonoBehaviour, IObjectMaterial
|
||||
{
|
||||
public ObjectMaterialScriptableObject material;
|
||||
public ObjectMaterialInfo GetObjectMaterial(string action = "None", Vector3 pos = default)
|
||||
{
|
||||
return material.dictionary[action];
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user