public Koopa(Vector2 location) { EnemyPhysics = new EnemyPhysicalProperty(this); State = new KoopaMoveState(EnemyPhysics.IsFacingLeft); Location = location; deathTimer = Util.Instance.Koopa_deathtimer; kickTimer = Util.Instance.Koopa_kicktimer; reviveTimer = Util.Instance.Koopa_revivetimer; shouldDraw = true; isStomped = false; isKicked = false; Coefficient = 1; }
public void Revive() { bool tempFaceingDirection = EnemyPhysics.IsFacingLeft; State = new KoopaMoveState(EnemyPhysics.IsFacingLeft); EnemyPhysics = new EnemyPhysicalProperty(this); EnemyPhysics.IsFacingLeft = tempFaceingDirection; deathTimer = Util.Instance.Koopa_deathtimer_revive; kickTimer = Util.Instance.Koopa_kicktimer_revive; reviveTimer = Util.Instance.Koopa_revivetimer_revive; isStomped = false; isKicked = false; Coefficient = 1; }
public void SwitchDirection() { State = new KoopaMoveState(EnemyPhysics.IsFacingLeft); }