You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
427 B
20 lines
427 B
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.Events;
|
|
|
|
public class NamedTextureBinding : MonoBehaviour {
|
|
public Texture Texture
|
|
{
|
|
set
|
|
{
|
|
textureBinding.Invoke(textureName, value);
|
|
}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class NamedTextureEvent : UnityEvent<string, Texture> { }
|
|
|
|
public string textureName;
|
|
public NamedTextureEvent textureBinding;
|
|
}
|