This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tileSize : float = 10; | |
var roadSize : float = 4; | |
function BuildCity(rows:int, columns:int){ | |
for (var i:int=1;i<=rows;i+=1){ | |
for (var j:int=1;j<=columns;j+=1){ | |
var citytile : GameObject = GameObject.CreatePrimitive(PrimitiveType.Plane); | |
citytile.transform.parent = transform; | |
citytile.transform.position = Vector3(i*(tileSize + roadSize),0,j*(tileSize + roadSize)); | |
citytile.transform.localRotation = Quaternion.identity; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Tkinter import * | |
from tkFileDialog import askopenfile | |
import csv | |
class UI(object): | |
def __init__(self): | |
#**********************************CREATE INSTANCE OF THE MANAGER CLASS******************************** | |
self.manage = Manager() | |
#*************************************FORMAT TKINTER WINDOW******************************************** | |
self.master = Tk() #self.master is the root/basic Tkinter window |
NewerOlder