コード例 #1
0
ファイル: GameManager.cs プロジェクト: usernamejialu/tank
 // Lazy loads the loading panel
 public void LazyLoadLoadingPanel()
 {
     if (m_LoadingScreen != null)
     {
         return;
     }
     m_LoadingScreen = LoadingModal.s_Instance.fader;
 }
コード例 #2
0
    /// <summary>
    /// Lazy loads the fading group
    /// </summary>
    protected void LazyLoad()
    {
        if (fadingGroup != null)
        {
            return;
        }

        fadingGroup = GetComponent <FadingGroup>();
    }
コード例 #3
0
    protected virtual void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
        }

        m_Fader = GetComponent <FadingGroup>();
    }
コード例 #4
0
    protected virtual void Awake()
    {
        if (instance != null)
        {
            Debug.Log("<color=lightblue>Trying to create a second instance of LoadingModal</color");
            Destroy(gameObject);
        }
        else
        {
            instance = this;
        }

        fader = GetComponent <FadingGroup>();
    }