示例#1
0
文件: Bar.cs 项目: toyboot4e/Rot
        public EntityBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2))
        {
            this.posUtil = posUtil;
            this.style   = style;

            this.offset = offset;
            this.size   = new Vector2(posUtil.tileWidth - 2, 5);
        }
示例#2
0
 public void addHpBar(PosUtil posUtil, EntityBarStyle style)
 {
     this.bar        = new HpBar(posUtil, style);
     this.bar.Entity = this.Entity;
     this.bar.OnAddedToEntity();
 }
示例#3
0
文件: Bar.cs 项目: toyboot4e/Rot
 public HpBar(PosUtil posUtil, EntityBarStyle style, Vector2 offset = default(Vector2)) : base(posUtil, style, offset)
 {
 }