Beispiel #1
0
        public override BaseEvent Clone()
        {
            CameraLookAt at = ClassObjPool <CameraLookAt> .Get();

            at.CopyData(this);
            return(at);
        }
Beispiel #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            CameraLookAt at = src as CameraLookAt;

            this.worldOffset   = at.worldOffset;
            this.localOffset   = at.localOffset;
            this.overrideUpDir = at.overrideUpDir;
            this.upDir         = at.upDir;
            this.UpDirType     = at.UpDirType;
            this.rowAngleByZ   = at.rowAngleByZ;
            this.cameraId      = at.cameraId;
            this.targetId      = at.targetId;
        }