// PAINT METHODS: ------------------------------------------------------------------------- protected override SerializedProperty GetProperty(int option, SerializedProperty property) { TargetGameObject.Target optionTyped = (TargetGameObject.Target)option; switch (optionTyped) { case TargetGameObject.Target.GameObject: return(property.FindPropertyRelative(PROP_GAMEOBJECT)); case TargetGameObject.Target.LocalVariable: return(property.FindPropertyRelative(PROP_LOCAL)); case TargetGameObject.Target.ListVariable: return(property.FindPropertyRelative(PROP_LIST)); case TargetGameObject.Target.GlobalVariable: return(property.FindPropertyRelative(PROP_GLOBAL)); } return(null); }
public TargetGameObject(TargetGameObject.Target target) { this.target = target; }