Category5.Victim.getDistanceFromTornado C# (CSharp) 메소드

getDistanceFromTornado() 보호된 메소드

Calculates the distance to the center of the tornado used to compare with the radius to determine where you should place yourself
protected getDistanceFromTornado ( ) : float
리턴 float
        protected float getDistanceFromTornado()
        {
            return (tornado.Position - new Vector2(this.bounds.Center.X, this.bounds.Center.Y)).Length();
        }