public Player() { _chunksUsed = new Dictionary<Tuple<int, int>, ChunkColumn>(); HealthManager = new PCHealthManager(this); if (PlayerEntity == null) PlayerEntity = new MiNET.Player(null, null, PluginGlobals.Level[0], null, -1); PlayerInventory = new PlayerInventory(this); }
void Awake() { Me = this; //if (SceneManager.GetActiveScene().name == SvgManager.SvgData.currentSceneName) //{ // hp = SvgManager.SvgData.currHPs; // //DEBUG // if (hp > maxHitPoints || hp <= 0f) // { // Debug.LogWarning("Warning, remaining HP = " + hp + " and max HP = " + maxHitPoints); // hp = maxHitPoints; // } //} //else //{ // hp = maxHitPoints; //} hp = MaxHitPoints; }