Created
April 19, 2016 05:54
-
-
Save HassakuTb/5c18dae429bd55e473962934a367bd8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public abstract class ScriptableObjectInstancePresenter<T> : MonoBehaviour where T : ScriptableObject{ | |
public T m_model; | |
protected T model { get; set; } | |
protected void Awake() { | |
model = ScriptableObject.Instantiate<T>(m_model); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment