Ejemplo n.º 1
0
        public static UIPressAnyKey Instantiate(UIPressAnyKey prefab, Transform parent, Action onPress)
        {
            UIPressAnyKey uIPressAnyKey = UnityEngine.Object.Instantiate(prefab);

            uIPressAnyKey.transform.parent = parent;
            uIPressAnyKey.transform.localScaleOne();
            uIPressAnyKey.transform.localPosition = uIPressAnyKey._strParam.pos;
            uIPressAnyKey.Init(onPress);
            return(uIPressAnyKey);
        }
Ejemplo n.º 2
0
        public static UIPressAnyKey Instantiate(UIPressAnyKey prefab, Transform parent, Action onPress)
        {
            UIPressAnyKey uIPressAnyKey = Object.Instantiate <UIPressAnyKey>(prefab);

            uIPressAnyKey.get_transform().set_parent(parent);
            uIPressAnyKey.get_transform().localScaleOne();
            uIPressAnyKey.get_transform().set_localPosition(uIPressAnyKey._strParam.pos);
            uIPressAnyKey.Init(onPress);
            return(uIPressAnyKey);
        }
 private bool InitPressAnyKey(object data)
 {
     this._uiPressAnyKey = UIPressAnyKey.Instantiate(TitleTaskManager.GetPrefabFile().prefabUIPressAnyKey.GetComponent <UIPressAnyKey>(), TitleTaskManager.GetSharedPlace(), new Action(this.OnPressAnyKeyFinished));
     return(false);
 }
Ejemplo n.º 4
0
 private bool InitPressAnyKey(object data)
 {
     _uiPressAnyKey = UIPressAnyKey.Instantiate(((Component)TitleTaskManager.GetPrefabFile().prefabUIPressAnyKey).GetComponent <UIPressAnyKey>(), TitleTaskManager.GetSharedPlace(), OnPressAnyKeyFinished);
     return(false);
 }