Exemple #1
0
 private void Awake()
 {
     inputField      = GetComponent <InputField>();
     uniqueName      = SampleUtils.UniqueName(base.transform);
     inputField.text = PlayerPrefs.GetString(uniqueName, inputField.text);
     inputField.onEndEdit.AddListener(OnEndEdit);
 }
Exemple #2
0
 private void Awake()
 {
     toggle      = GetComponent <Toggle>();
     uniqueName  = SampleUtils.UniqueName(base.transform);
     toggle.isOn = ((PlayerPrefs.GetInt(uniqueName, toggle.isOn ? 1 : 0) != 0) ? true : false);
     toggle.onValueChanged.AddListener(OnValueChanged);
 }
        protected void SendRegistrationId(string providerName, string registrationId)
        {
            string userId = SampleUtils.GenerateDeviceUniqueIdentifier();

            StartCoroutine(SendRegistrationId(userId, providerName, registrationId));
        }