diff --git a/Unity-19050-08-DarkSea/Assets/Prefabs/RawImage.prefab b/Unity-19050-08-DarkSea/Assets/Prefabs/RawImage.prefab index 372409f..a57cad5 100644 --- a/Unity-19050-08-DarkSea/Assets/Prefabs/RawImage.prefab +++ b/Unity-19050-08-DarkSea/Assets/Prefabs/RawImage.prefab @@ -85,4 +85,5 @@ MonoBehaviour: m_EditorClassIdentifier: totalTime: 0.5 id: 0 + stat: 0 tuio_event: {fileID: 0} diff --git a/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs b/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs index 9d3cd89..0ee6d54 100644 --- a/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs +++ b/Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs @@ -25,7 +25,9 @@ public class movieController : MonoBehaviour else { GetComponent().enabled = true; + //Debug.Log(stat); } + if (tuio_event.tuio_input.touchCount > 0) { transform.gameObject.SetActive(true); @@ -57,4 +59,16 @@ public class movieController : MonoBehaviour transform.localScale = new Vector3(scale, scale, 1); } } + + private void OnEnable() + { + //doScaling(1); + Debug.Log("Hi"); + } + + private void OnDestroy() + { + //doScaling(0); + Debug.Log("Bye"); + } }