Beispiel #1
0
        public void UpdatePolygon()
        {
            switch (SpellData.Type)
            {
            case SkillShotType.SkillshotCircle:
                Circle.UpdatePolygon();
                Polygon = Circle;
                break;

            case SkillShotType.SkillshotLine:
                Rectangle.UpdatePolygon();
                Polygon = Rectangle;
                break;

            case SkillShotType.SkillshotMissileLine:
                Rectangle.UpdatePolygon();
                Polygon = Rectangle;
                break;

            case SkillShotType.SkillshotCone:
                Sector.UpdatePolygon();
                Polygon = Sector;
                break;

            case SkillShotType.SkillshotRing:
                Ring.UpdatePolygon();
                Polygon = Ring;
                break;

            case SkillShotType.SkillshotArc:
                Arc.UpdatePolygon();
                Polygon = Arc;
                break;
            }
        }