Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    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;
    }