Commit cfbfba44 by Raphael

Forgot Main.scene

parent f73e4ff9
No preview for this file type
fileFormatVersion: 2
guid: e73019487bcba4d4697011287cd75bf4
timeCreated: 1477392214
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
......@@ -31,12 +31,10 @@ namespace Assets.Scripts
Screen.height, 0)).x;
var leftBorder = Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).x;
if (rightBorder > (size.x - 2) * mult)
{
BG = (GameObject) Instantiate(BG, new Vector3(size.x + tra.position.x - .5f, tra.position.y, 0), Quaternion.identity);
tra = BG.GetComponent<Transform>();
mult++;
}
if (!(rightBorder > (size.x*mult) - 2)) return;
BG = (GameObject) Instantiate(BG, new Vector3(size.x + tra.position.x - .5f, tra.position.y, 0), Quaternion.identity);
tra = BG.GetComponent<Transform>();
mult++;
// _ca.Step(rightBorder);
// DrawMap(leftBorder, rightBorder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment