//값 초기화
 private void OnLevelWasLoaded(int level)
 {
     if (UnityEngine.SceneManagement.SceneManager.GetSceneByBuildIndex(level).name.Equals("InGame"))
     {
         minimapClick = GameObject.FindGameObjectWithTag("MinimapClick").GetComponent <MinimapClick>();
         fxPool       = GameObject.FindGameObjectWithTag("MouseFxPool").GetComponent <MouseFxPooling>();
     }
 }
Exemple #2
0
    private void OnLevelWasLoaded(int level)
    {
        if (SceneManager.GetSceneByBuildIndex(level).name.Equals("InGame"))
        {
            PhotonNetwork.OnEventCall += SpellEffectSync;

            cursor         = GameObject.FindGameObjectWithTag("MouseCursor").GetComponent <AOSMouseCursor>();
            Ping           = GameObject.FindGameObjectWithTag("PingPool").GetComponent <PingPooling>();
            cam            = Camera.main.GetComponent <RTS_Cam.RTS_Camera>();
            minimap        = GameObject.FindGameObjectWithTag("MinimapClick").GetComponent <MinimapClick>();
            chat           = GameObject.FindGameObjectWithTag("ChatManager").GetComponentInChildren <ChatFunction>();
            SpellContainer = GameObject.FindGameObjectWithTag("SpellPooling");
            makepool();
            isInGameScene = true;
        }
    }