void Awake() { _tileHeight = -1.0f; _senseTimerFrequency = 1.0f; _decideTimerFrequency = 1.0f / 2.0f; _actTimerFrequency = 1.0f / 30.0f; senseTimer = 0.0f; decideTimer = 0.0f; actTimer = 0.0f; cameraXPosition = width * 0.5f - tileSize * 0.5f; cameraZPosition = height * 0.5f - tileSize * 0.5f; cameraYPosition = 10.0f; cameraForward = new Vector3(0, -1, 0); cameraUp = new Vector3(0, 0, 1); Camera.main.transform.position = new Vector3(cameraXPosition, cameraYPosition, cameraZPosition); Camera.main.transform.rotation = Quaternion.LookRotation(cameraForward, cameraUp); GridTile = Resources.Load("Prefab_GridTile") as GameObject; Grid = new Script_Grid(this); Grid.InstantiateGrid(GridTile, 10, 10, _tileHeight, transform.rotation); GameObject sheep = Resources.Load("Prefab_Sheep") as GameObject; Grid.CreateSheep(sheep, 10, 10, 0, transform.rotation, 10); GameObject wolf = Resources.Load("Prefab_Wolf") as GameObject; Grid.CreateWolves(wolf, 10, 10, 0, transform.rotation, 3); }