From 783a3c0dcfb80fa016953ff141e6de12e262525e Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 25 Apr 2021 19:13:28 +0800 Subject: -proflares --- Assets/ProFlares/DemoScripts/AddForceToTarget.cs | 27 ------------------------ 1 file changed, 27 deletions(-) delete mode 100644 Assets/ProFlares/DemoScripts/AddForceToTarget.cs (limited to 'Assets/ProFlares/DemoScripts/AddForceToTarget.cs') diff --git a/Assets/ProFlares/DemoScripts/AddForceToTarget.cs b/Assets/ProFlares/DemoScripts/AddForceToTarget.cs deleted file mode 100644 index 3179773..0000000 --- a/Assets/ProFlares/DemoScripts/AddForceToTarget.cs +++ /dev/null @@ -1,27 +0,0 @@ -/// ProFlares - v1.08 - Copyright 2014-2015 All rights reserved - ProFlares.com - -using UnityEngine; -using System.Collections; -namespace ProFlares { -public class AddForceToTarget : MonoBehaviour { - public Transform target; - public float force; - - public ForceMode mode; - - void FixedUpdate () { - - - float dist = (Vector3.Distance(transform.position,target.position)*0.01f); - - - Vector3 dir = target.position-transform.position; -#if UNITY_5_0 - GetComponent().AddForce(dir*(force*dist),mode); -#else - GetComponent().AddForce(dir*(force*dist),mode); -#endif - - } -} -} \ No newline at end of file -- cgit v1.1-26-g67d0