Example #1
0
        /// <summary>
        /// Spawn a white screen.
        /// </summary>
        public static void PopJCSWhiteScreen()
        {
            string          path = JCS_UISettings.WHITE_SCREEN_PATH;
            JCS_WhiteScreen ws   = JCS_Utility.SpawnGameObject(path).GetComponent <JCS_WhiteScreen>();

            if (ws == null)
            {
                JCS_Debug.LogError("GameObject without `JCS_WhiteScreen` Component attached!!!");
                return;
            }

            JCS_SceneManager.instance.SetJCSWhiteScreen(ws);
        }
Example #2
0
 private void Start()
 {
     mLightning = JCS_SceneManager.instance.GetJCSWhiteScreen();
 }
 public void SetWhiteScreen(JCS_WhiteScreen ws)
 {
     this.mWhiteScreen = ws;
 }