Ejemplo n.º 1
0
        void Start()
        {
            mScrollRect = this.gameObject.GetComponent <ScrollRect>();

            if (Application.isPlaying)
            {
                mCellPrefab = HS_ResourceManager.LoadAsset <GameObject>(mCellPrefabName);
            }
        }
Ejemplo n.º 2
0
    public void Init(MushroomsCfgElement e)
    {
        //         scheduler.Timeout(() =>
        //         {
        //             HS_ViewManager.Open<UILoginView>();
        //             HS_ViewManager.Close<UILogoView>();
        //         }, 2);

        GameObject obj = new GameObject();

        _Image        = obj.AddComponent <Image>();
        _Image.sprite = HS_ResourceManager.LoadAsset <Sprite>(e.AnimationName);
        obj.AddComponent <MushroomsRipeStateBehaviour>().Init(this);
        obj.AddComponent <MushroomsWitherStateBehaviour>().Init(this);;
    }
Ejemplo n.º 3
0
 internal override GameObject GetViewPrefab()
 {
     return(HS_ResourceManager.LoadAsset <GameObject>("UIHome"));
 }