18 lines
331 B
C#
18 lines
331 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class OnCam : MonoBehaviour
|
||
|
{
|
||
|
public void OnBecameInvisible()
|
||
|
{
|
||
|
Debug.Log("I SEE U");
|
||
|
}
|
||
|
|
||
|
// ...and enable it again when it becomes visible.
|
||
|
public void OnBecameVisible()
|
||
|
{
|
||
|
Debug.Log("NO Visual");
|
||
|
}
|
||
|
}
|