From 49d7c60db6292adfb10d7478ef013be129cfc77b Mon Sep 17 00:00:00 2001 From: tigerchen Date: Mon, 2 Dec 2019 11:04:53 +0800 Subject: [PATCH] add size delta --- Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs b/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs index 0ee6d54..7acdfb2 100644 --- a/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs +++ b/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs @@ -8,11 +8,15 @@ public class movieController : MonoBehaviour public float totalTime = 0.5f; public int id; public tuio_event tuio_event; + int stat; + Vector2 final_size; //public Transform trans; // Start is called before the first frame update void Start() { - + final_size = GetComponent().sizeDelta = Vector2.zero; + GetComponent().sizeDelta = Vector2.zero; + stat = 0; } // Update is called once per frame @@ -38,12 +42,11 @@ public class movieController : MonoBehaviour void wake() { - doScaling(1); + } void die() { - doScaling(0); Destroy(this); }