예제 #1
0
        public void Start()
        {
            UpdateDll main = GameObject.Find("Main").GetComponent <UpdateDll>();

            slider.value   = 0;
            main.progress += Progress;
        }
예제 #2
0
 // Use this for initialization
 private void Awake()
 {
     DontDestroyOnLoad(this.gameObject);
     updateDll = GetComponent <UpdateDll>();
     if (instance == null)
     {
         instance = this as Main;
     }
     else
     {
         Destroy(gameObject);
     }
 }