Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 public Player(Vector2 spawnPoint, string username, GuiInventory inventory)
     : base(new Rectangle((int) spawnPoint.X, (int) spawnPoint.Y, Tile.Tile_Width, Tile.Tile_Width * 2), Textures.EntityPlayer, 1, 2.8f, true, Tile.Tile_Width + 10)
 {
     this.username = username;
     this.spawnPoint = spawnPoint;
     this.inventory = inventory;
     hotbar = new HotBar();
 }
Ejemplo n.º 2
0
        public void openInventory(GuiInventory inventory)
        {
            inventoryOpened = inventory;

            isInInventory = true;
        }
Ejemplo n.º 3
0
        public void closeInventory()
        {
            inventoryOpened = null;

            isInInventory = false;
        }