Esempio n. 1
0
        public DZMazeBossSimpleStateMachine(DZMazeBoss boss)
        {
            this.boss      = boss;
            initialState   = DZMazeBossStates.Idle;
            attackPosition = new Vector2[]
            {
                new Vector2(42, 83),
                new Vector2(257, 83),
                new Vector2(42, 254),
                new Vector2(275, 257)
            };

            fallAttackPosition = new Vector2(160, 160);
        }
Esempio n. 2
0
 public DZMazeBossHPBar(DZMazeBoss boss)
 {
     actorProperty = boss.getComponent <ActorPropertyComponent>();
     nameWidth     = Graphics.instance.bitmapFont.measureString(name).X;
 }