Пример #1
0
 private void InitDistanceBounds()
 {
     if (distanceChecker == null)
     {
         distanceChecker = gameObject.AddComponent <DistanceChecker>();
         distanceChecker.InitDistanceBounds();
     }
 }
 private void InitDistanceBounds()
 {
     if (checher == null)
     {
         checher = gameObject.AddComponent<DistanceChecker>();
         checher.roamDistancePower = 3.5f;
         checher.roamDistanceOutPower = 4;
         checher.freeDistancePower = 3.6f;
         checher.InitDistanceBounds();
     }
 }