public override void OnUse() { base.OnUse(); this.worldOffset = Vector3.zero; this.localOffset = Vector3.zero; this.overrideUpDir = true; this.upDir = Vector3.up; this.UpDirType = EUpDirType.NoOverrideUp; this.rowAngleByZ = 0f; this.cameraId = 0; this.targetId = -1; }
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; }