private void HandleChangeMpHUDToClient(string[] msg) { if (NotInClientScene()) { HUDDisplay hpAndMp = GameObject.FindObjectOfType <LevelManager>().hpAndMp; hpAndMp.CurrentMPPercentage(float.Parse(msg[1])); } }
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])); }