using UnityEngine; using System.Collections; public class Script: MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnBecameInvisible() { Debug.Log("OnBecameInvisible"); } void OnBecameVisible() { Debug.Log("OnBecameVisible"); } }これで見えてる間だけ動作するAIとかが作れそう
0 件のコメント:
コメントを投稿