add size delta

master
tigerchen 6 years ago
parent 0c09344803
commit 49d7c60db6
  1. 9
      Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs

@ -8,11 +8,15 @@ public class movieController : MonoBehaviour
public float totalTime = 0.5f; public float totalTime = 0.5f;
public int id; public int id;
public tuio_event tuio_event; public tuio_event tuio_event;
int stat;
Vector2 final_size;
//public Transform trans; //public Transform trans;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
final_size = GetComponent<RectTransform>().sizeDelta = Vector2.zero;
GetComponent<RectTransform>().sizeDelta = Vector2.zero;
stat = 0;
} }
// Update is called once per frame // Update is called once per frame
@ -38,12 +42,11 @@ public class movieController : MonoBehaviour
void wake() void wake()
{ {
doScaling(1);
} }
void die() void die()
{ {
doScaling(0);
Destroy(this); Destroy(this);
} }

Loading…
Cancel
Save