<commit_before>﻿using UnityEngine;
using System.Collections;
using UnityEditor;

namespace Lockstep.Integration
{
    [CustomEditor (typeof(LSProjectile))]
    public class EditorLSProjectile : Editor
    {
        SerializedObject so {get {return base.serializedObject;}}
        public override void OnInspectorGUI()
        {
            EditorGUI.BeginChangeCheck ();
            
            //Targeting
            EditorGUILayout.LabelField ("Targeting Settings", EditorStyles.boldLabel);
            so.PropertyField("_targetingBehavior");
            TargetingType targetingBehavior = (TargetingType) so.FindProperty("_targetingBehavior").enumValueIndex;
            switch (targetingBehavior) {
                case TargetingType.Free:
					so.PropertyField("_speed");
					break;
                case TargetingType.Homing:
                    so.PropertyField("_speed");
					so.PropertyField("_visualArc");
                    break;
                case TargetingType.Timed:
                    so.PropertyField("_delay");
                    break;
            }
            EditorGUILayout.Space ();
            
            //Damage
            EditorGUILayout.LabelField ("Damage Settings", EditorStyles.boldLabel);
            so.PropertyField("_hitBehavior");
            switch ((HitType)so.FindProperty("_hitBehavior").enumValueIndex) {
                case HitType.Cone:
                    so.PropertyField("_angle");
					so.PropertyField("_radius");
                    break;
                case HitType.Area:<commit_msg>Add Speed and VisualArc settings to Positional projectiles<commit_after>﻿using UnityEngine;
using System.Collections;
using UnityEditor;

namespace Lockstep.Integration
{
    [CustomEditor (typeof(LSProjectile))]
    public class EditorLSProjectile : Editor
    {
        SerializedObject so {get {return base.serializedObject;}}
        public override void OnInspectorGUI()
        {
            EditorGUI.BeginChangeCheck ();
            
            //Targeting
            EditorGUILayout.LabelField ("Targeting Settings", EditorStyles.boldLabel);
            so.PropertyField("_targetingBehavior");
            TargetingType targetingBehavior = (TargetingType) so.FindProperty("_targetingBehavior").enumValueIndex;
            switch (targetingBehavior) {
                case TargetingType.Free:
					so.PropertyField("_speed");
					break;
                case TargetingType.Positional:
                case TargetingType.Homing:
                    so.PropertyField("_speed");
					so.PropertyField("_visualArc");
                    break;
                case TargetingType.Timed:
                    so.PropertyField("_delay");
                    break;
            }
            EditorGUILayout.Space ();
            
            //Damage
            EditorGUILayout.LabelField ("Damage Settings", EditorStyles.boldLabel);
            so.PropertyField("_hitBehavior");
            switch ((HitType)so.FindProperty("_hitBehavior").enumValueIndex) {
                case HitType.Cone:
                    so.PropertyField("_angle");
					so.PropertyField("_radius");
                    break;
                case HitType.Area:
{'fraction_non_alphanumeric': 0.08971141781681305, 'fraction_numerical': 0.0, 'mean_word_length': 1.9283746556473829, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7136625', 'n_tokens_mistral': 816, 'n_tokens_neox': 760, 'n_words': 138}