From 91cf1734ba185817ba65f9e5cac85ded5f323463 Mon Sep 17 00:00:00 2001 From: jparent Date: Sun, 23 Aug 2015 10:18:44 -0400 Subject: [PATCH] reduce minimum angle range for auto-target to 10 --- Assets/Prefabs/Child.prefab | 6 +++++- Assets/Scripts/AutoTarget.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/Prefabs/Child.prefab b/Assets/Prefabs/Child.prefab index d3d5e2a..d301993 100644 --- a/Assets/Prefabs/Child.prefab +++ b/Assets/Prefabs/Child.prefab @@ -153,7 +153,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 567fe96dcacb08f4ab716a98ce99fc88, type: 3} m_Name: m_EditorClassIdentifier: - minAngleRange: 60 + minAngleRange: 10 --- !u!135 &13545904 SphereCollider: m_ObjectHideFlags: 1 @@ -214,6 +214,10 @@ Prefab: propertyPath: Speed value: 2 objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: minAngleRange + value: 10 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 190616} diff --git a/Assets/Scripts/AutoTarget.cs b/Assets/Scripts/AutoTarget.cs index 1dabcd8..178e3ad 100644 --- a/Assets/Scripts/AutoTarget.cs +++ b/Assets/Scripts/AutoTarget.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; public class AutoTarget : MonoBehaviour { private List targets; - public float minAngleRange = 60f; + public float minAngleRange = 20f; // Use this for initialization void Start ()