protected override SerializedProperty GetExtraProperty(int option, SerializedProperty property) { TargetDirection.Target optionTyped = (TargetDirection.Target)option; switch (optionTyped) { case TargetDirection.Target.Player: case TargetDirection.Target.Camera: case TargetDirection.Target.Transform: return(property.FindPropertyRelative(PROP_OFFSET)); } return(null); }
protected override SerializedProperty GetProperty(int option, SerializedProperty property) { TargetDirection.Target optionTyped = (TargetDirection.Target)option; switch (optionTyped) { case TargetDirection.Target.Transform: return(property.FindPropertyRelative(PROP_TRANSFORM)); case TargetDirection.Target.Point: return(property.FindPropertyRelative(PROP_POINT)); case TargetDirection.Target.LocalVariable: return(property.FindPropertyRelative(PROP_LOCAL)); case TargetDirection.Target.GlobalVariable: return(property.FindPropertyRelative(PROP_GLOBAL)); } return(null); }
public TargetDirection(TargetDirection.Target target) { this.target = target; }