Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //MD5Hash:479d4bcb9a2c68e32e4741fa7823d21c;
- using UnityEngine;
- using System;
- public class MapGenerator : UnityEngine.MonoBehaviour
- {
- public UnityEngine.GameObject GameObject_Plane = null;
- public UnityEngine.Transform Transform_Map = null;
- public int Count_X = 0;
- public int Count_Z = 0;
- void Start()
- {
- int Local_Counting_X = 0;
- int Local_Counting_Z = 0;
- int XY_Cordinates = 10;
- ///X Loop Sequence
- while ((Local_Counting_X < Count_X))
- {
- ///X Loop Sequence
- Local_Counting_X ++;
- 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));
- }
- ///Reset Local Counting X
- Local_Counting_X = 0;
- ///Commentary
- while ((Local_Counting_Z < Count_Z))
- {
- ///Commentary
- Local_Counting_Z ++;
- }
- }
- void Update()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement