Exemplo n.º 1
0
        protected sealed override void OnInject(object[] data)
        {
            Type type = (Type)data[0];

            _script    = type;
            this._name = type.Name;
        }
        private static void OnSelectedTypeName(object userData)
        {
            var selectedType = userData as Type;

            s_SelectedClassRef = ClassTypeReference.GetClassRef(selectedType);
            var typeReferenceUpdatedEvent = EditorGUIUtility.CommandEvent("TypeReferenceUpdated");

            EditorWindow.focusedWindow.SendEvent(typeReferenceUpdatedEvent);
        }
 protected override sealed void OnInject(object[] data)
 {
     Type type = (Type)data[0];
     _script = type;
 }