Last updated: Sep 8, 2022

Introduction

The Element class is used as a base class for any interface element in the asset. It handles some very basic functionality and holds some references that are important for most of the UI.

You can find the Element script ****at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Interface\Element.cs

Fields

Game Mode Service. Reference to the IGameModeService in the game.

Character Behaviour. Reference to the player’s CharacterBehaviour component.

Inventory Behaviour. Reference to the player character’s InventoryBehaviour component.

Equipped Weapon Behaviour. Reference to the player character’s equipped weapon’s WeaponBehaviour component.

Methods

Tick. This method gets run every frame.