Esempio n. 1
0
        /// <summary>
        /// Return the total distance this BloonToSim has travelled
        /// </summary>
        /// <param name="bloonToSim"></param>
        /// <returns></returns>
        public static float GetDistanceTravelled(this BloonToSimulation bloonToSim)
        {
            var distance = bloonToSim.GetBloon().distanceTraveled;

#if BloonsAT
            bloonToSim.distanceTravelled = distance;
#endif
            return(distance);
        }
Esempio n. 2
0
 /// <summary>
 /// Return the UnityDisplayNode for this bloon. Is apart of DisplayNode. Needed to modify sprites
 /// </summary>
 /// <returns></returns>
 public static UnityDisplayNode GetUnityDisplayNode(this BloonToSimulation bloonToSim)
 {
     return(bloonToSim.GetBloon().GetUnityDisplayNode());
 }