示例#1
0
    private void Awake()
    {
        m_TankManager = FindObjectOfType <TanksNetworkManager>();
        m_FadeManager = GetComponentInChildren <FadeManager>();
        m_Fade        = GetComponentInChildren <CanvasGroup>();

        if (m_TankManager != null)
        {
            m_TankManager.gameObject.SetActive(false);
        }
        StartCoroutine(m_FadeManager.FadeIn(m_Fade));
    }
示例#2
0
    private void Awake()
    {
        m_TanksNetwork  = FindObjectOfType <TanksNetworkManager>();
        m_Canvas        = GetComponentInChildren <Canvas>();
        m_Customizer    = GetComponentInChildren <Customizer>();
        m_Nicknamer     = GetComponentInChildren <Nicknamer>();
        m_MeshRenderers = GetComponentsInChildren <MeshRenderer>();

        m_Canvas.gameObject.SetActive(false);

        m_TankModel.SetActive(false);

        m_Camera.gameObject.SetActive(false);

        if (NetworkManager.IsSceneActive(m_TanksNetwork.onlineScene))
        {
            m_MatchRoomManager = GameObject.FindGameObjectWithTag("MatchRoomManager").GetComponent <MatchRoomManager>();
        }
    }
示例#3
0
 private void Awake()
 {
     m_TanksNetwork = FindObjectOfType <TanksNetworkManager>();
     m_Fade         = m_TanksNetwork.GetComponentInChildren <CanvasGroup>();
     m_FadeManager  = m_TanksNetwork.GetComponentInChildren <FadeManager>();
 }