protected override SerializedProperty GetProperty(int option, SerializedProperty property) { TargetCharacter.Target optionTyped = (TargetCharacter.Target)option; switch (optionTyped) { case TargetCharacter.Target.Character: return(property.FindPropertyRelative(PROP_CHARACTER)); case TargetCharacter.Target.LocalVariable: return(property.FindPropertyRelative(PROP_LOCAL)); case TargetCharacter.Target.GlobalVariable: return(property.FindPropertyRelative(PROP_GLOBAL)); case TargetCharacter.Target.ListVariable: return(property.FindPropertyRelative(PROP_LIST)); } return(null); }
public TargetCharacter(TargetCharacter.Target target) { this.target = target; }