Пример #1
0
        public static void UnitTest_Float()
        {
            Test0   t  = new Test0();
            Vector3 v3 = new Vector3();

            t.CalFloat(v3);
        }
Пример #2
0
        public static void UnitTest_Arr()
        {
            var vectors = new Vector3[] {
                new Vector3(335, 253, 0),
                new Vector3(335, 2533, 0),
                new Vector3(335, 25332, 0)
            };

            foreach (var v in vectors)
            {
                Logger.Log("v=" + v.y);
            }
        }
Пример #3
0
 static void PassV3(Vector3 v3)
 {
     Logger.Log("" + v3.y);
 }
Пример #4
0
        public static void UnitTest_V3()
        {
            Vector3 v = new Vector3(45, 5, 0);

            PassV3(v);
        }
Пример #5
0
 void CalFloat(Vector3 v3)
 {
     float midy = (1 - v3.y) / 1;
 }
Пример #6
0
        public static void UnitTest_Arr()
        {
            var vectors = new Vector3[] {
                new Vector3(335, 253, 0),
                new Vector3(335, 2533, 0),
                new Vector3(335, 25332, 0)};

            foreach(var v in vectors)
            {
                Logger.Log("v=" + v.y);
            }
        }
Пример #7
0
 void CalFloat(Vector3 v3)
 {
     float midy = (1 - v3.y) / 1;
 }
Пример #8
0
 static void PassV3(Vector3 v3)
 {
     Logger.Log("" + v3.y);
 }
Пример #9
0
 public static void UnitTest_V3()
 {
     Vector3 v = new Vector3(45, 5, 0);
     PassV3(v);
 }
Пример #10
0
 public static void UnitTest_Float()
 {
     Test0 t = new Test0();
     Vector3 v3 = new Vector3();
     t.CalFloat(v3);
 }