void Start() { if (instance is null) { instance = gameObject.transform.GetComponent <SnowballView>(); } gameObject.GetComponent <Button>().onClick.AddListener(delegate { ChangeSnowball.Run(gameObject, currentNumberSnowball); }); }
void Start() { ChangeSnowball.Run(Vault.instance.buttonUIItemsMenu[currentSnowballView].gameObject, currentSnowballView); if (!Vault.instance.settings.mode_2_5D) { MainGround.transform.rotation = new Quaternion(0, 0, 0, 0); groundFence.transform.rotation = new Quaternion(0, 0, 0, 0); } Vault.instance.settings.ApplySettings(); Vault.currentLanguage = Application.systemLanguage; SettingsMenu.SetLanguage(Vault.currentLanguage); }