Пример #1
0
        public static IEnumerator AnimateParabolicMove(
            this MapUnit unit,
            HexCoords oldLoc,
            HexCoords newLoc)
        {
            float airTime    = (float)oldLoc.DistanceTo(newLoc) / 3;
            float peakHeight = airTime * 0.66f;

            return(AnimateParabolicMove(unit, oldLoc, newLoc, airTime, peakHeight));
        }