Пример #1
0
    private void OnTriggerEnter(Collider other)

    {
        Debug.Log("Before if");

        if (other.gameObject.name == "OVRCameraRig")
        {
            Debug.Log("After if");



            fadeIn.FromBlack();


            //Invoke("ChangeScene", 2.0f);
        }
    }
 // Use this for initialization
 void Start()
 {
     Debug.Log("calling FromBlack");
     fs.FromBlack();
 }