示例#1
0
 // Use this for initialization
 void Start()
 {
     //find gameplaymanager script
     resultscreenmanager = GameObject.Find("ResultScreenManager").GetComponent <ResultScreenManager>();
     if (resultscreenmanager == null)
     {
         Debug.Log("ResultScreenManager script not found");
     }
 }
示例#2
0
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
        resultImage = transform.Find("Result Background").GetComponent <Image>();
    }
示例#3
0
 private void Awake()
 {
     instance = this;
 }