示例#1
0
        public IRenderBase CreateObject(RenderProtocol renderProtocol, int gameSize)
        {
            IRenderBase result = null;

            switch (renderProtocol)
            {
            case RenderProtocol.CreateNumberObject:
            {
                result = new zcyNumberObject();
            }
            break;
            }

            return(result);
        }
示例#2
0
        public void DestroyObject(IRenderBase iRenderBase)
        {
            zcyNumberObject zcyObj = iRenderBase as zcyNumberObject;

            GameObject.Destroy(zcyObj.numberGameObject);
        }