Esempio n. 1
0
        public static UIDifficultyBtn Instantiate(UIDifficultyBtn prefab, Transform parent, DifficultKind iKind, int nIndex)
        {
            UIDifficultyBtn uIDifficultyBtn = UnityEngine.Object.Instantiate(prefab);

            uIDifficultyBtn.transform.parent = parent;
            uIDifficultyBtn.transform.localScaleOne();
            uIDifficultyBtn.transform.localPositionZero();
            uIDifficultyBtn.Init(iKind, nIndex);
            return(uIDifficultyBtn);
        }
Esempio n. 2
0
        public static UIDifficultyBtn Instantiate(UIDifficultyBtn prefab, Transform parent, DifficultKind iKind, int nIndex)
        {
            UIDifficultyBtn uIDifficultyBtn = Object.Instantiate <UIDifficultyBtn>(prefab);

            uIDifficultyBtn.get_transform().set_parent(parent);
            uIDifficultyBtn.get_transform().localScaleOne();
            uIDifficultyBtn.get_transform().localPositionZero();
            uIDifficultyBtn.Init(iKind, nIndex);
            return(uIDifficultyBtn);
        }