Esempio 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);
        }
Esempio 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);
        }