private Unlock CastUnlockType(Type unlockType) { Unlock unlock = null; if (unlockType == typeof(PackUnlock)) { unlock = new PackUnlock(); } return(unlock); }
private void DrawPackUnlock(PackUnlock packUnlock) { packUnlock.packIndex = EditorGUILayout.IntField("Required Pack Index", packUnlock.packIndex, GUILayout.MaxWidth(350f)); packUnlock.requiredLevel = EditorGUILayout.IntField("Required Level Index", packUnlock.requiredLevel, GUILayout.MaxWidth(350f)); }