add enable & destroy event

master
tigerchen 6 years ago
parent 1445632204
commit 2c442661c8
  1. 1
      Unity-19050-08-DarkSea/Assets/Prefabs/RawImage.prefab
  2. 14
      Unity-19050-08-DarkSea/Assets/Scripts/movieController.cs

@ -85,4 +85,5 @@ MonoBehaviour:
m_EditorClassIdentifier:
totalTime: 0.5
id: 0
stat: 0
tuio_event: {fileID: 0}

@ -25,7 +25,9 @@ public class movieController : MonoBehaviour
else
{
GetComponent<RawImage>().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");
}
}

Loading…
Cancel
Save