public override void Draw(Color color) { base.Draw(color); // Drawing the parallax stuff parallax.Draw(); ammoBox.Draws(); ammoBox.Draw(); // Testing stuff below if (tank2.tankObject != null) { tank2.Draw(); bullets2.Draw(); tank2.collider.DrawRec(CUtils.RandomColor()); tank2Timer += deltaTimes; if (tank2Timer >= 0.2f) { tankLineColor = CUtils.RandomColor(); tank2Timer = 0; } if (tank.tankObject != null) { DrawLineBezier(tank2.position, tank2.currentTarget, 4, tankLineColor); } } if (tank.tankObject != null) { tank.Draw(); tank.collider.DrawRec(CUtils.RandomColor()); bullets.Draw(); } if (explodedTank) { texture = tankAni.PlayAndStop(); DrawTexture(texture, (int)tank.lastPosition.x, (int)tank.lastPosition.y, Color.WHITE); if (!tankAni.isActive) { explodedTank = false; } } if (explodedTank2) { texture = tankAni.PlayAndStop(); DrawTexture(texture, (int)tank2.lastPosition.x, (int)tank2.lastPosition.y, Color.WHITE); if (!tankAni.isActive) { explodedTank2 = false; } } }