Inheritance: MonoBehaviour
Example #1
0
 void Awake()
 {
     hud = (HudUI)FindObjectOfType(typeof(HudUI));
     restart = (RestartUI)FindObjectOfType(typeof(RestartUI));
 }
Example #2
0
 void Awake()
 {
     restart = FindObjectOfType<RestartUI>();
     hud = FindObjectOfType<HudUI>();
 }
Example #3
0
 void Awake()
 {
     hud     = (HudUI)FindObjectOfType(typeof(HudUI));
     restart = (RestartUI)FindObjectOfType(typeof(RestartUI));
 }
Example #4
0
        public RestartUI CreateRestartUI(Transform parent)
        {
            RestartUI restartUI = GameObject.Instantiate(ResourceManager.Instance.GetResource <GameObject>("RestartUI"), parent).GetComponent <RestartUI>();

            return(restartUI);
        }