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