diff Assets/Application/Scripts/DeathZone.cs @ 12:b55d586dd4eb

change bind from fmap.
author Kazuma Takeda
date Tue, 07 Feb 2017 20:48:57 +0900
parents 3fefb9f9025d
children
line wrap: on
line diff
--- a/Assets/Application/Scripts/DeathZone.cs	Sat Jan 28 19:15:44 2017 +0900
+++ b/Assets/Application/Scripts/DeathZone.cs	Tue Feb 07 20:48:57 2017 +0900
@@ -5,7 +5,7 @@
 public class DeathZone : MonoBehaviour {
 
 	private GameObject target;
-	private Vector3 firstPoint = new Vector3(0.5f, 2f, 0.5f);
+	private Vector3 firstPoint;
 
 	public delegate void HitCallback (int n);
 	public HitCallback hitcallback;
@@ -16,6 +16,7 @@
 
 	private void Start () {
 		target = GameObject.FindGameObjectWithTag ("Player");
+		firstPoint = target.transform.position;
 	}
 
 	private void Update () {