Beispiel #1
0
        private void showLoadAnim()
        {
            GameObject gameObj = GameObject.Find("UILoadAssets");

            if (gameObj == null)
            {
                GameObject showObj = (GameObject)Resources.Load("UILoadAssets");
                gameObj = (GameObject)Instantiate(showObj);
            }
            _loadassets = gameObj.GetComponent <LoadAssets>();
            _loadassets.init(this);
        }