Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 public void SetBlock(GamePiece.Type type, int x, int y)
 {
     if (OutOfBounds(x, y))
     {
         return;
     }
     else
     {
         board[x, y] = (int)type;
     }
 }
Esempio n. 3
0
    public static Mana GetMana(GamePiece.Type manaType, Mana[] allManasReference)
    {
        foreach (Mana mana in allManasReference)
        {
            if (mana.manaType == manaType)
            {
                return(mana);
            }
        }

        return(null);
    }
Esempio n. 4
0
 public void SetType(GamePiece.Type type)
 {
     _labels[1].text = type.ToString();
 }