Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     speed  = 8.0f;
     create = gameObject.AddComponent <CreateScript>();
     gui    = gameObject.AddComponent <GuiScript>();
     player = create.CreatePlayer(new Vector3(-5.0f, 0.0f, 0.0f), new Vector3(1.0f, 1.0f, 1.0f),
                                  5, new Vector2(3.0f, 5.0f), 0.0f, playerAnimatorController, transform);
     gameCanvas = gui.SetUpGameCanvas(mainCamera, backSprite, tileSprite);
     menuPanel  = gui.SetUpMenuCanvas(gameCanvas, startSprite, exitSprite, this);
     //StartGame();
 }