private static Action GetCallBack(GameObject _go)
        {
            Action callBack = delegate() {
                GameObject go = GameObject.Instantiate(_go);

                GameObjectControl control = go.GetComponent <GameObjectControl>();

                if (control != null && control.delUseNum != null)
                {
                    control.delUseNum = null;
                }

                SceneContinue sceneContinue = _go.AddComponent <SceneContinue>();

                sceneContinue.Init(go);
            };

            return(callBack);
        }
Beispiel #2
0
        static Action GetCallBack(GameObject _go)
        {
            Action callBack = delegate() {
                GameObject go = GameObject.Instantiate(_go);

                GameObjectControl control = _go.GetComponent <GameObjectControl>();

                if (control != null)
                {
                    GameObjectControl newControl = go.GetComponent <GameObjectControl>();

                    newControl.unit = control.unit;

                    newControl.AddUseNum();
                }

                SceneContinue sceneContinue = _go.AddComponent <SceneContinue>();

                sceneContinue.Init(go);
            };

            return(callBack);
        }