public void Awake() { if (genericInput == null) { genericInput = GetComponent <GenericInput>(); if (genericInput == null) { throw new Exception("ComponentNotAdded"); } } genericInput.SetInputField(); genericInput.AddListener(OnType); originalText = genericInput.GetText(); SetEndMethod(); }