예제 #1
0
 internal static void Start()
 {
     T = new Thread(() =>
     {
         ProcessChecker.Check();
     });
     T.Start();
 }
        private void Start()
        {
            string temporary;

            ProcessChecker.Check(
                "GetComponent", () => temporary   = GetComponent <Data>().sentence,
                "SerializeField", () => temporary = data.sentence);
        }
        void Start()
        {
            Vector2 a = new Vector2(Random.Range(-100, 100), Random.Range(-100, 100));
            Vector2 b = new Vector2(Random.Range(-100, 100), Random.Range(-100, 100));

            float temporary;

            ProcessChecker.Check(
                "Distance", () => temporary     = Vector2.Distance(a, b),
                "sqrMagnitude", () => temporary = (a - b).sqrMagnitude);
        }
예제 #4
0
 private void Start()
 {
     ProcessChecker.Check(
         "Position", () => obj.transform.position           = new Vector2(Random.Range(-100, 100), Random.Range(-100, 100)),
         "LocalPosition", () => obj.transform.localPosition = new Vector2(Random.Range(-100, 100), Random.Range(-100, 100)));
 }