// Use this for initialization void Start() { //find gameplaymanager script resultscreenmanager = GameObject.Find("ResultScreenManager").GetComponent <ResultScreenManager>(); if (resultscreenmanager == null) { Debug.Log("ResultScreenManager script not found"); } }
private void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); resultImage = transform.Find("Result Background").GetComponent <Image>(); }
private void Awake() { instance = this; }