void Start()
    {
        m_bugFixer = GameObject.FindGameObjectWithTag("BugFixer");
        //m_bugFixer.GetComponent<BugFixScript>().SetWorldCanvas();

        m_players         = new List <GameObject>();
        m_playerChars     = new List <int>();
        Orientor.pieThrow = false;

        animationSprites = GameObject.Find("OverworldBackground");
        m_playerIDObject = GameObject.FindGameObjectWithTag("Player");
        m_clientID       = CustomLobby.local.playerDetails.Identifier;
        m_currPlayers    = FindObjectsOfType <CustomLobby>().Length;

        mainCamera = GameObject.FindGameObjectWithTag("MainCamera");
        //cloneCamera = Instantiate(mainCamera, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);
        //mainCamera.SetActive(false);

        Debug.Log("Network ID: " + m_clientID);

        nlm = FindObjectOfType <NLM>();

        InitiWorld();
        NodeReached();
        nlm.ReadyButton();
    }
Beispiel #2
0
 public void ReadyPlayerFUN(bool loaded)
 {
     if (loaded)
     {
         NLM.ResumeWalking(local.netId);
     }
     else
     {
         NLM.Unready();
     }
 }