예제 #1
0
        public object Clone()
        {
            var gameObject = new GameObject(
                _inputComponent?.Clone() as IGameComponent,
                _physicComponent?.Clone() as IGameComponent,
                _logicComponent?.Clone() as IGameComponent,
                _graphicComponent?.Clone() as IGameComponent)
            {
                X          = X,
                Y          = Y,
                Width      = Width,
                Height     = Height,
                Azimuth    = Azimuth,
                IsAbstract = IsAbstract
            };

            return(gameObject);
        }