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

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