public static ProdEndPhase Instantiate(ProdEndPhase prefab, Transform parent, KeyControl keyController, bool clear, bool isTurnOver)
        {
            ProdEndPhase prodEndPhase = Object.Instantiate <ProdEndPhase>(prefab);

            prodEndPhase.get_transform().set_parent(parent);
            prodEndPhase.get_transform().set_localScale(Vector3.get_one());
            prodEndPhase.get_transform().set_localPosition(Vector3.get_zero());
            prodEndPhase._init();
            prodEndPhase._keyController = keyController;
            prodEndPhase._isClear       = clear;
            prodEndPhase._isTurnOver    = isTurnOver;
            return(prodEndPhase);
        }
示例#2
0
        public static ProdEndPhase Instantiate(ProdEndPhase prefab, Transform parent, KeyControl keyController, bool clear, bool isTurnOver)
        {
            ProdEndPhase prodEndPhase = UnityEngine.Object.Instantiate(prefab);

            prodEndPhase.transform.parent        = parent;
            prodEndPhase.transform.localScale    = Vector3.one;
            prodEndPhase.transform.localPosition = Vector3.zero;
            prodEndPhase._init();
            prodEndPhase._keyController = keyController;
            prodEndPhase._isClear       = clear;
            prodEndPhase._isTurnOver    = isTurnOver;
            return(prodEndPhase);
        }