Example #1
0
    public void _Texture_set(unit unt)
    {
        Texture temp2 = GD.Load <Texture>("res://Resources/Unit/rsz_red_ava.png");
        Texture temp1 = GD.Load <Texture>("res://Resources/Unit/rsz_blue_ava.png");

        if (unt.IsInGroup("Player2"))
        {
            UnitPic.Texture = temp2;
        }
        if (unt.IsInGroup("Player1"))
        {
            UnitPic.Texture = temp1;
        }
    }