private void HandleChangeMpHUDToClient(string[] msg)
 {
     if (NotInClientScene())
     {
         HUDDisplay hpAndMp = GameObject.FindObjectOfType <LevelManager>().hpAndMp;
         hpAndMp.CurrentMPPercentage(float.Parse(msg[1]));
     }
 }
Exemplo n.º 2
0
    private void HandleChangeMpHUDToClient(string[] msg)
    {
        Scene currentScene = SceneManager.GetActiveScene();

        if (currentScene.name == "ClientScene")
        {
            return;
        }
        HUDDisplay hpAndMp = GameObject.FindObjectOfType <LevelManager>().hpAndMp;

        hpAndMp.CurrentMPPercentage(float.Parse(msg[1]));
    }