// Use this for initialization void Start() { this.Obstacles = new List <GameObject>(); GameOver = false; this.ragdoll = this.Player.GetComponent <RagdollHelper>(); this.logicAnimator = this.GetComponent <LogicAnimationController>(); this.movePlayer = this.Player.GetComponent <Moving>(); this.animatorController = this.Player.GetComponent <Animator>(); this.InitiateMap(); this.InitiatePlayer(); Time.timeScale = 0; this.InitiatePlayerPref(); string player = PlayerPrefs.GetString(PlayerPrefsString.NAME); if (PlayerPrefs.GetString(PlayerPrefsString.NAME) != "") { this.StartGame(); } else { ui.EnablePlayerWriteName(); } }
// Use this for initialization void Start() { myGame = this.GetComponent<Game>(); logicAnimation = myGame.GetComponent<LogicAnimationController>(); }