Advertisement
diegographics

Untitled

Apr 3rd, 2017
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. //MD5Hash:479d4bcb9a2c68e32e4741fa7823d21c;
  2. using UnityEngine;
  3. using System;
  4.  
  5.  
  6. public class MapGenerator : UnityEngine.MonoBehaviour
  7. {
  8.     public UnityEngine.GameObject GameObject_Plane = null;
  9.     public UnityEngine.Transform Transform_Map = null;
  10.     public int Count_X = 0;
  11.     public int Count_Z = 0;
  12.  
  13.  
  14.     void Start()
  15.     {
  16.         int Local_Counting_X = 0;
  17.         int Local_Counting_Z = 0;
  18.         int XY_Cordinates = 10;
  19.  
  20.         ///X Loop Sequence
  21.         while ((Local_Counting_X < Count_X))
  22.         {
  23.             ///X Loop Sequence
  24.             Local_Counting_X ++;
  25.             UnityEngine.Object.Instantiate(GameObject_Plane, new UnityEngine.Vector3(((Local_Counting_X * XY_Cordinates) - XY_Cordinates), 0f, ((Local_Counting_Z * XY_Cordinates) - XY_Cordinates)), new UnityEngine.Quaternion(0f, 0f, 0f, 0f));
  26.         }
  27.         ///Reset Local Counting X
  28.         Local_Counting_X = 0;
  29.         ///Commentary
  30.         while ((Local_Counting_Z < Count_Z))
  31.         {
  32.             ///Commentary
  33.             Local_Counting_Z ++;
  34.         }
  35.     }
  36.     void Update()
  37.     {
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement