Hello. I have been trying to create to create a script that saves input field text when you leave scene and come back to it the input field text would still be there. Right now I am using DontDestroyOnLoad however my script is not working. I will post my script below and if anyone has any ideas that would be greatly appreciated.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class DontDestroyOnLoad : MonoBehaviour {
public InputField 1Text;
public InputField 2Text;
public InputField 3Text;
void Start () {
}
void awake () {
DontDestroyOnLoad (1Text);
DontDestroyOnLoad (2Text);
DontDestroyOnLoad (3Text);
}
}