public T InstantiateAs <T>() where T : UnityEngine.Object { T ret = default(T); if (null != resState) { ret = resState.InstantiateAs <T>(); } return(ret); }