private void Start() { _audi = GetComponent <AudioSource>(); if (Ini.FileExists("Save.sv")) { Ini.LoadFile("Save.sv"); ExamplePony.playerMare = Ini.Get("Player_mare") == "1"; ExamplePony.Beard.SetActive(Ini.Get("Player_beard") == "1"); ExamplePony.randomHair = Convert.ToInt32(Ini.Get("Player_hair")); ExamplePony.SetNewValues(); ExamplePony.HairAnim.GetComponent <SpriteRenderer>().color = ExamplePony.Beard.GetComponent <SpriteRenderer>().color = SaveLoadGame.LoadColor("Player_hairColor"); ExamplePony.GetComponent <SpriteRenderer>().color = SaveLoadGame.LoadColor("Player_bodyColor"); ExamplePony.anims[1].GetComponent <SpriteRenderer>().color = SaveLoadGame.LoadColor("Player_flagColor"); ExamplePony.anims[2].GetComponent <SpriteRenderer>().color = SaveLoadGame.LoadColor("Player_eyesColor"); ExamplePony.gameObject.SetActive(true); for (int i = 0; i < ExamplePony.anims.Length; i++) { ExamplePony.anims[i].SetBool("sit", true); } ExamplePony.HairAnim.SetBool("sit", true); if (ExamplePony.Beard.activeSelf) { ExamplePony.Beard.GetComponent <Animator>().SetBool("sit", true); } LoadGameButton.interactable = true; } }