コード例 #1
0
        void Load()
        {
#if UNITY_5_3
            FaderManager.FadeInCamera(1, 0, Color.white, () => SceneManager.LoadScene("MainMenu"));
#else
            Application.LoadLevel("MainMenu");
#endif
        }
コード例 #2
0
        private void AnimateRotation()
        {
            _mask = FindObjectOfType <InvertMask>();
            if (_mask == null)
            {
                GameObject obj = (GameObject)Instantiate(InvertMaskPrefab);
                if (Camera.main != null)
                {
                    obj.transform.SetParent(Camera.main.transform);
                }
                obj.transform.localPosition = Vector3.forward;
                _mask = obj.GetComponent <InvertMask>();
            }

            _mask.Animate(CallbackMaskClosed);

            FaderManager.FadeInCamera(1, 0);
        }