コード例 #1
0
ファイル: HUD.cs プロジェクト: percy1338/Druid-Game
 public void Update()
 {
     if (_player.GetShape() == Player.Shape.Snake)
     {
         this.texture.Load("HUD/Snake.png");
     }
     if (_player.GetShape() == Player.Shape.Human)
     {
         this.texture.Load("HUD/Human.png");
     }
     if (_player.GetShape() == Player.Shape.Bird)
     {
         this.texture.Load("HUD/Eagle.png");
     }
     if (_player.GetShape() == Player.Shape.Bear)
     {
         this.texture.Load("HUD/Bear.png");
     }
 }