Beispiel #1
0
        void Awake()
        {
            loadingController = GetComponent <TWLoading>();

            loadingController.CreateInstance();
            loadingController.SetLoadingAnimation(loadingFrames, currentFrame, fps);
            TWLoading.SetupController(loadingImageLib);
            //TWLoading.ChangeImageLoadAspectFitter(TWLoading.ImageLoadType.AUTO_FIT);
        }
 private void createInstance()
 {
     if (instance == null)
     {
         instance = this;
         adjustingCanvas();
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }