public void Init(int u_id, Vector2 position, float rotation, int side, GamePiece.Type type) { UniqueId = u_id; UpdateGUI(position, rotation); _label.SetId(u_id); _label.SetSide(side); _label.SetType(type); }
public void SetBlock(GamePiece.Type type, int x, int y) { if (OutOfBounds(x, y)) { return; } else { board[x, y] = (int)type; } }
public static Mana GetMana(GamePiece.Type manaType, Mana[] allManasReference) { foreach (Mana mana in allManasReference) { if (mana.manaType == manaType) { return(mana); } } return(null); }
public void SetType(GamePiece.Type type) { _labels[1].text = type.ToString(); }