Exemplo n.º 1
0
 void OnDestroy()
 {
     if (target != null)
     {
         CameraCulling.RemoveTarget(target);
         target = null;
     }
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Awake()
    {
        if (!AppConst.DebugMode)
        {
            GetComponent <Image>().enabled = false;

            target = new CameraCulling.Target(gameObject, transform);
            CameraCulling.AddTarget(target);
        }
    }