public IRenderBase CreateObject(RenderProtocol renderProtocol, int gameSize) { IRenderBase result = null; switch (renderProtocol) { case RenderProtocol.CreateNumberObject: { result = new zcyNumberObject(); } break; } return(result); }
public void DestroyObject(IRenderBase iRenderBase) { zcyNumberObject zcyObj = iRenderBase as zcyNumberObject; GameObject.Destroy(zcyObj.numberGameObject); }