Example #1
0
    private Unlock CastUnlockType(Type unlockType)
    {
        Unlock unlock = null;

        if (unlockType == typeof(PackUnlock))
        {
            unlock = new PackUnlock();
        }

        return(unlock);
    }
Example #2
0
 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));
 }