コード例 #1
0
        public SharedDirection(float _xLength, float _yLength, float _divisor)
        {
            if (!(_xLength % _divisor == 0 && _yLength % _divisor == 0))
            {
                throw new Exception("Make sure the components of a direction length are a number divisible by the divisor.");
            }

            sharedDirection = new SharedResources.SharedDirection(new List <float>()
            {
                _xLength, _yLength
            }, _divisor);
        }
コード例 #2
0
 public SharedDirection(float _divisor)
 {
     sharedDirection = new SharedResources.SharedDirection(_divisor);
 }
コード例 #3
0
 public SharedDirection()
 {
     sharedDirection = new SharedResources.SharedDirection();
 }