void Start() { loadManagerController = GameObject.Find("LoadManagerController").GetComponent<Load_Manager>(); level_Information = GameObject.Find("Level_Information").GetComponent<Level_Information>(); startGameScript = GameObject.Find("Main Camera").GetComponent<StartGame>(); highscoreTable = new HighscoreTable(); }
void Start() { currentSpawnPoint = originalSpawnPoint; information = GameObject.Find("Level_Information").GetComponent <Level_Information>(); if (information == null) { Debug.LogError("Lever_Information not set!"); } }
void Start() { load_Manager = this; LevelInformation = GameObject.Find("Level_Information").GetComponent <Level_Information>(); sceneList.Add("Main_Menu", 0); sceneList.Add("Leaderboards", 1); sceneList.Add("Level_Select", 2); sceneList.Add("Forest", 3); sceneList.Add("City", 4); sceneList.Add("Military-Base", 5); sceneList.Add("Demo_Level", 100); }
void Start() { checkpoints = this.GetComponent <ReactToCheckPoints>(); //Berechnet die Schwerkraft und Sprunggeschwindigkeit gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex; minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); information = GameObject.Find("Level_Information").GetComponent <Level_Information>(); if (information == null) { Debug.LogError("Lever_Information not set!"); } print("Gravity: " + gravity + " JumpVelocity: " + maxJumpVelocity); }